:root {
  color-scheme: light;
  --navy: #071c31;
  --navy-2: #0b2b48;
  --blue: #0a72ce;
  --ice: #6ee7f9;
  --orange: #ff6b35;
  --snow: #f4f8fb;
  --surface: #ffffff;
  --ink: #0b1f33;
  --muted: #587087;
  --line: #dce7ef;
  --success: #087a55;
  --warning: #9a5b00;
  --danger: #b42318;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(7, 28, 49, .12);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-size: 16px; line-height: 1.55; }
body, button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { min-height: 44px; }
button, select, input[type="checkbox"], input[type="radio"] { cursor: pointer; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; accent-color: var(--blue); }
:focus-visible { outline: 3px solid rgba(10, 114, 206, .38); outline-offset: 2px; }
.skip-link { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 100; transform: translateY(-150%); background: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.site-header { position: sticky; inset-block-start: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-row { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -.03em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--navy); background: linear-gradient(135deg, var(--ice), #eefcff); }
.brand-mark svg { width: 24px; height: 24px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button, .language-select { border: 0; background: transparent; border-radius: 10px; color: var(--muted); padding: 9px 11px; min-height: 40px; font-size: .92rem; font-weight: 700; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--snow); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-button { display: none; border: 0; border-radius: 10px; background: var(--snow); padding: 9px 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; border: 1px solid transparent; border-radius: 11px; padding: 10px 18px; background: var(--blue); color: white; font-weight: 800; box-shadow: 0 7px 20px rgba(10,114,206,.18); }
.button:hover { filter: brightness(.96); transform: translateY(-1px); }
.button.secondary { background: white; color: var(--ink); border-color: var(--line); box-shadow: none; }
.button.danger { background: var(--danger); }
.button.small { min-height: 38px; padding: 7px 12px; font-size: .88rem; }
.hero { position: relative; min-height: 650px; color: white; background: var(--navy) url('/img/bg.png') center/cover no-repeat; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,22,39,.96) 0%, rgba(5,22,39,.8) 52%, rgba(5,22,39,.34) 100%); }
.hero-inner { position: relative; padding-block: 76px 96px; }
.eyebrow { margin: 0 0 16px; color: var(--ice); font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin-block: 0; font-family: "Bricolage Grotesque", system-ui, sans-serif; line-height: 1.1; letter-spacing: -.035em; }
h1 { max-width: 820px; font-size: clamp(2.5rem, 6vw, 5.4rem); }
.hero-copy { max-width: 700px; margin: 20px 0 32px; color: rgba(255,255,255,.78); font-size: 1.08rem; }
.search-panel { max-width: 1080px; padding: 20px; border: 1px solid rgba(255,255,255,.2); border-radius: 22px; background: rgba(255,255,255,.96); color: var(--ink); box-shadow: var(--shadow); }
.search-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; }
.field { display: grid; align-content: start; gap: 6px; }
.field.span-2 { grid-column: span 2; }
.field label, .field legend { color: var(--ink); font-size: .8rem; font-weight: 800; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { width: 100%; border: 1px solid #cbdbe6; border-radius: 10px; background: white; color: var(--ink); padding: 10px 11px; }
.field textarea { min-height: 100px; resize: vertical; }
.search-submit { align-self: end; }
.quick-trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px; color: rgba(255,255,255,.72); font-size: .9rem; }
.section { padding-block: 72px; }
.section.snow { background: var(--snow); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head h2, .page-hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
.section-head p { max-width: 700px; margin: 10px 0 0; color: var(--muted); }
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 22px; box-shadow: 0 5px 24px rgba(7,28,49,.05); }
.card:hover { border-color: #b8d4e5; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badge { display: inline-flex; align-items: center; min-height: 28px; border-radius: 999px; padding: 4px 9px; background: #eaf6ff; color: #07558f; font-size: .78rem; font-weight: 800; }
.badge.success { background: #e7f8f1; color: var(--success); }
.page-hero { background: var(--navy); color: white; padding-block: 54px; }
.page-hero p { max-width: 720px; color: rgba(255,255,255,.74); }
.breadcrumb { margin-bottom: 14px; color: var(--ice); font-size: .82rem; font-weight: 800; }
.notice { display: block; width: 100%; min-width: 0; border-inline-start: 4px solid var(--blue); border-radius: 10px; background: #edf7ff; padding: 15px 18px; color: #164766; line-height: 1.5; overflow-wrap: anywhere; }
.notice.warning { border-color: #e49a13; background: #fff8e8; color: #6a4300; }
.notice.error { border-color: var(--danger); background: #fff0ee; color: #7c211a; }
.result-list { display: grid; gap: 18px; }
.result-card { display: grid; grid-template-columns: 180px 1fr auto; gap: 22px; align-items: center; }
.result-card img { width: 180px; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; background: var(--snow); }
.price { font-size: 1.35rem; font-weight: 900; white-space: nowrap; }
.form-card { max-width: 780px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.choice-group { display: grid; gap: 8px; }
.choice { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.choice label { flex: 1; }
.auth-shell { max-width: 480px; }
#auth-form { display: grid; gap: 14px; }
#auth-form .button { justify-self: start; }
#auth-status { width: 100%; min-width: 0; margin: 0; }
#auth-status:empty { display: none; }
#auth-status .notice { margin: 0; }
.account-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.account-role-card { margin-bottom: 20px; }
.status-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.status-table th, .status-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.empty { text-align: center; border: 1px dashed #bed1dd; border-radius: var(--radius); padding: 38px 22px; color: var(--muted); background: var(--snow); }
.skeleton { min-height: 130px; border-radius: var(--radius); background: linear-gradient(90deg,#edf3f7 25%,#f8fbfd 50%,#edf3f7 75%); background-size: 200% 100%; animation: pulse 1.4s infinite; }
@keyframes pulse { to { background-position: -200% 0; } }
.site-footer { margin-top: 72px; background: var(--navy); color: white; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-block: 48px; }
.site-footer p, .site-footer a { color: rgba(255,255,255,.68); }
.site-footer a:hover { color: var(--ice); }
.footer-links { display: grid; align-content: start; gap: 9px; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); padding-block: 20px; color: rgba(255,255,255,.55); font-size: .84rem; }
[dir="rtl"] .hero::before { background: linear-gradient(270deg, rgba(5,22,39,.96), rgba(5,22,39,.8) 52%, rgba(5,22,39,.34)); }
[dir="rtl"] .breadcrumb { direction: rtl; }
[dir="rtl"] .result-card, [dir="rtl"] .section-head { text-align: right; }

@media (max-width: 960px) {
  .menu-button { display: inline-flex; }
  .nav { display: none; position: absolute; inset-inline: 16px; inset-block-start: 62px; flex-direction: column; align-items: stretch; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .header-actions .button { display: none; }
  .search-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid.three { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .container { width: min(100% - 22px, 1180px); }
  .hero { min-height: auto; }
  .hero-inner { padding-block: 52px 68px; }
  h1 { font-size: 2.55rem; }
  .search-panel { padding: 14px; }
  .search-grid, .form-grid, .grid.two, .grid.three, .footer-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: span 1; }
  .section { padding-block: 52px; }
  .section-head { align-items: start; flex-direction: column; }
  .result-card { grid-template-columns: 1fr; }
  .result-card img { width: 100%; }
  .price { white-space: normal; }
  .header-actions .language-select { max-width: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
