:root {
  --lake: #0b3c5d;
  --lake-deep: #072a42;
  --aqua: #1c9fbf;
  --sun: #f2b134;
  --sand: #f6f1e7;
  --ink: #1d2730;
  --muted: #5d6b77;
  --line: #dfe5ea;
  --card: #ffffff;
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}
[dir="rtl"] { --font: "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", Arial, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--aqua); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--lake); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* buttons */
.btn { display: inline-block; background: var(--sun); color: var(--lake-deep); border: 0; border-radius: 999px; padding: .8em 1.6em; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); background: #ffc24d; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-small { padding: .5em 1.1em; font-size: .9rem; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.8); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn.done { background: #d9f0e3; color: #17663c; }
.link { background: none; border: 0; color: #b23b3b; cursor: pointer; font: inherit; text-decoration: underline; }

/* header */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(7,42,66,.96); backdrop-filter: blur(6px); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .12em; font-size: 1.2rem; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { white-space: nowrap; }
.nav a:not(.btn) { color: #dbe9f2; text-decoration: none; font-size: .95rem; }
.nav a:not(.btn):hover { color: #fff; }
#lang { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: .9rem; }
#lang option { color: var(--ink); }
.menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* hero */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--lake-deep); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7,42,66,.92) 0%, rgba(7,42,66,.65) 50%, rgba(7,42,66,.25) 100%); }
[dir="rtl"] .hero-bg::after { background: linear-gradient(-100deg, rgba(7,42,66,.92) 0%, rgba(7,42,66,.65) 50%, rgba(7,42,66,.25) 100%); }
.hero-content { position: relative; padding-block: 80px; max-width: 1160px; }
.hero-content > * { max-width: 640px; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; color: var(--sun); font-weight: 700; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
.lead { font-size: 1.15rem; color: #e3eef5; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* sections */
.section { padding-block: 84px; }
.section.alt { background: var(--sand); }
.sub { color: var(--muted); max-width: 720px; margin-bottom: 32px; }
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.feature { background: var(--sand); border-radius: var(--radius); padding: 24px; }
.feature .ico { font-size: 1.8rem; }
.feature h3 { margin-top: 10px; color: var(--lake); font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* catalogue */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filters button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .5em 1.1em; font: inherit; cursor: pointer; color: var(--ink); }
.filters button.active { background: var(--lake); color: #fff; border-color: var(--lake); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.fish { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(11,60,93,.08); display: flex; flex-direction: column; }
.fish img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: linear-gradient(135deg, #1c9fbf, #0b3c5d); }
.fish img.broken { visibility: hidden; }
.fish-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.fish-body h3 { margin: 0; color: var(--lake); font-size: 1.1rem; }
.sci { font-style: italic; color: var(--muted); margin: 0; }
.meta { margin: 0 0 10px; font-size: .9rem; color: var(--muted); }
.fish-body .btn { margin-top: auto; align-self: flex-start; }

/* steps */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--aqua); padding-top: 18px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lake); color: #fff; font-weight: 700; margin-bottom: 10px; }
.steps h3 { font-size: 1.05rem; color: var(--lake); }
.steps p { margin: 0; color: var(--muted); }
.note { margin-top: 32px; padding: 14px 18px; background: #eaf5f9; border-inline-start: 4px solid var(--aqua); border-radius: 8px; }

/* order form */
.card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 10px rgba(11,60,93,.06); margin-bottom: 24px; }
.card h3 { color: var(--lake); }
.empty { color: var(--muted); }
.cart { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.cart th { text-align: start; font-size: .85rem; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
.cart td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart input[type=number] { width: 110px; }
input, select, textarea { max-width: 100%; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid #c9d3db; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.cart select, .cart input { width: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--aqua); outline-offset: 1px; border-color: transparent; }
.add-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.add-row select, .add-row input { flex: 1 1 240px; width: 100%; }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; margin-bottom: 18px; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; font-weight: 600; }
.fields .full { grid-column: 1 / -1; }
.hp { position: absolute; inset-inline-start: -9999px; }
.form-msg { min-height: 1.4em; font-weight: 600; }
.form-msg.ok { color: #17663c; }
.form-msg.err { color: #b23b3b; }

/* contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 0; }
.contact div { background: var(--sand); border-radius: var(--radius); padding: 20px; }
.contact dt { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.contact dd { margin: 6px 0 0; font-weight: 600; font-size: 1.05rem; word-break: break-word; }

/* footer */
.footer { background: var(--lake-deep); color: #b9cbd8; padding-block: 28px; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: #fff; }

/* responsive */
@media (max-width: 960px) {
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 64px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--lake-deep); padding: 8px 16px 18px; display: none; }
  .menu-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin: 14px 0 10px; text-align: center; }
}
@media (max-width: 640px) {
  .section { padding-block: 60px; }
  .features, .steps, .fields { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .cart thead { display: none; }
  .cart tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cart td { border: 0; padding: 0; }
  .cart td:first-child { grid-column: 1 / -1; font-weight: 600; }
  .cart td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: .8rem; color: var(--muted); }
  .cart select, .cart input[type=number] { width: 100%; }
}
