:root {
  --paper: #f6f1e4;
  --paper-2: #eee6d2;
  --paper-3: #e7dec5;
  --ink: #12262f;
  --ink-soft: #3c5560;
  --ink-faint: #6c808a;
  --sea: #1e4f63;
  --sea-deep: #0e2e3b;
  --sea-deeper: #081e27;
  --gold: #e0a233;
  --gold-deep: #b87a1c;
  --gold-pale: #f1ce87;
  --coral: #be5b3b;
  --coral-deep: #9a4429;
  --line: rgba(18, 38, 47, 0.13);
  --line-strong: rgba(18, 38, 47, 0.26);
  --radius-sm: 3px;
  --radius: 6px;
  --radius-lg: 14px;
  --wrap: 1200px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-sm: 0 1px 2px rgba(14, 46, 59, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(14, 46, 59, 0.22);
  --shadow-lg: 0 24px 60px -20px rgba(14, 46, 59, 0.32);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
::selection {
  background: var(--gold);
  color: var(--sea-deep);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  flex: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--sea-deep);
  margin: 0;
}

.tide {
  width: 100%;
  height: 28px;
  display: block;
  color: var(--line-strong);
}
.tide path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.topbar {
  background: var(--sea-deeper);
  color: var(--paper-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 32px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a {
  color: var(--gold-pale);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.topbar a:hover {
  border-color: var(--gold-pale);
}

/* ---------- Nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 228, 0.9);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
nav.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  padding-bottom: 15px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand img {
  height: 36px;
  width: auto;
}
.brand .brand-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--sea-deep);
  line-height: 1.1;
}
.brand .brand-text span {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-top: 3px;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.navlinks a {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.navlinks a:not(.cta-login):not(.cta-register):hover {
  color: var(--sea);
  background: rgba(30, 79, 99, 0.07);
}
.navlinks .cta-login {
  margin-left: 10px;
  border: 1.5px solid var(--sea-deep);
  color: var(--sea-deep);
}
.navlinks .cta-login:hover {
  background: var(--sea-deep);
  color: var(--paper);
}
.navlinks .cta-register {
  background: var(--coral);
  color: #fff;
}
.navlinks .cta-register:hover {
  background: var(--coral-deep);
}

.navtoggle {
  display: none;
}

@media (max-width: 980px) {
  .navlinks {
    display: none;
  }
  .navtoggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--line-strong);
    background: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
  }
  .navlinks.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px;
    box-shadow: var(--shadow-md);
  }
  .navlinks.open a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .navlinks.open .cta-login,
  .navlinks.open .cta-register {
    margin: 10px 0 0;
    text-align: center;
    justify-content: center;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(
      ellipse 900px 520px at 84% -12%,
      rgba(224, 162, 51, 0.2),
      transparent 60%
    ),
    radial-gradient(
      ellipse 700px 420px at -10% 110%,
      rgba(30, 79, 99, 0.1),
      transparent 60%
    ),
    var(--paper);
  padding: 64px 0 44px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero {
    padding-top: 40px;
  }
}

.hero h1 {
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  line-height: 1.06;
}
.hero h1 em {
  font-style: italic;
  color: var(--coral);
}
.hero .lede {
  margin: 22px 0 30px;
  max-width: 52ch;
  font-size: 17px;
  color: var(--ink-soft);
  text-align: left;
}
.hero .actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(190, 91, 59, 0.55);
}
.btn-primary:hover {
  background: var(--coral-deep);
}
.btn-ghost {
  border-color: var(--sea-deep);
  color: var(--sea-deep);
}
.btn-ghost:hover {
  background: var(--sea-deep);
  color: var(--paper);
}

.hero-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  font-family: var(--mono);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats .stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--sea-deep);
  font-weight: 600;
}
.hero-stats .stat span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2px;
}

/* Hero SVG scene */
.scene {
  position: relative;
}
.scene-frame {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-md);
}
.scene svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 9px;
  overflow: hidden;
}
.scene-caption {
  font-family: var(--mono);
  font-size: 11.5px;
  text-align: center;
  color: var(--ink-faint);
  margin-top: 14px;
  letter-spacing: 0.04em;
}

.route-line {
  stroke-dasharray: 6 7;
  stroke-dashoffset: 0;
  animation: dashmove 2.6s linear infinite;
}
@keyframes dashmove {
  to {
    stroke-dashoffset: -130;
  }
}
.boat {
  offset-rotate: 0deg;
  animation: sail 5.5s ease-in-out infinite;
}
@keyframes sail {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}
.pulse-dot {
  animation: pulse 2.4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* ---------- Section shell ---------- */
section {
  padding: 76px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  max-width: none;
  margin-bottom: 46px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 15.5px;
 /* max-width: 60ch;*/
}

/* ---------- Shared rail (carousel) mechanics ---------- */
.rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 4px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar {
  display: none;
}
.rail-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.rail-dots {
  display: flex;
  gap: 6px;
  margin-right: 4px;
}
.rail-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  display: block;
}
.rail-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  color: var(--sea-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
  flex: none;
}
.rail-btn:hover {
  background: var(--sea-deep);
  color: var(--paper);
  border-color: var(--sea-deep);
  transform: translateY(-1px);
}

/* ---------- Vacancies ---------- */
.vacancies {
  background: var(--paper-2);
  position: relative;
}
.vac-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 4px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.vac-rail::-webkit-scrollbar {
  display: none;
}
.vac-card {
  scroll-snap-align: start;
  flex: 0 0 calc(50% - 11px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
@media (max-width: 680px) {
  .vac-card {
    flex: 0 0 100%;
  }
}
.vac-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.vac-pubmat {
  width: 100%;
  aspect-ratio: 16/10;
  background: radial-gradient(
      ellipse 260px 160px at 80% -10%,
      rgba(224, 162, 51, 0.18),
      transparent 60%
    ),
    var(--sea-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex: none;
}
.vac-pubmat img {
  position: absolute;
  inset: 0;
  width: 100%;
  /*height:100%;*/
  object-fit: cover;
  object-position: center;
  display: block;
}
.vac-pubmat .pubmat-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-align: center;
  padding: 0 20px;
}
.vac-pubmat .pubmat-fallback svg {
  opacity: 0.85;
}
.vac-pubmat .pubmat-fallback span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 241, 228, 0.6);
}
.vac-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.vac-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.vac-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sea-deep);
  background: rgba(30, 79, 99, 0.09);
  padding: 5px 10px;
  border-radius: 20px;
}
.vac-badge.urgent {
  color: var(--coral-deep);
  background: rgba(190, 91, 59, 0.12);
}
.vac-deadline {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-align: right;
  white-space: nowrap;
}
.vac-card h3 {
  font-size: 1.28rem;
  line-height: 1.25;
}
.vac-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.vac-meta div {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.vac-meta b {
  color: var(--sea-deep);
  font-weight: 600;
  min-width: 78px;
  flex: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--mono);
  font-weight: 500;
}
.vac-card .vac-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vac-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--coral);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vac-link:hover {
  color: var(--coral-deep);
}
.vac-link svg {
  transition: transform 0.15s ease;
}
.vac-link:hover svg {
  transform: translateX(3px);
}
.vac-slots {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
}

.vac-note {
  margin-top: 26px;
  font-size: 13px;
  color: var(--ink-faint);
  font-family: var(--mono);
  display: flex;
  gap: 8px;
  align-items: baseline;
}

/* ---------- Feedback / testimonials ---------- */
.feedback {
  background: var(--sea-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.feedback::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 700px 400px at 90% 0%,
    rgba(224, 162, 51, 0.14),
    transparent 60%
  );
  pointer-events: none;
}
.feedback .eyebrow {
  color: var(--gold);
}
.feedback .eyebrow::before {
  background: var(--gold);
}
.feedback .section-head h2 {
  color: var(--paper);
}
.feedback .section-head p {
  color: rgba(246, 241, 228, 0.72);
}
.feedback .rail-btn {
  background: rgba(246, 241, 228, 0.06);
  border-color: rgba(246, 241, 228, 0.28);
  color: var(--paper);
}
.feedback .rail-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--sea-deep);
}

.quote-card {
  scroll-snap-align: start;
  flex: 0 0 350px;
  background: rgba(246, 241, 228, 0.05);
  border: 1px solid rgba(246, 241, 228, 0.16);
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: var(--radius);
}
.quote-card .stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 2px;
}
.quote-card blockquote {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
  color: rgba(246, 241, 228, 0.92);
  flex: 1;
  max-height: 250px;
  overflow-y: auto;
  padding: 5px 15px 5px 5px;
}
.quote-card footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: rgba(246, 241, 228, 0.55);
  padding-top: 12px;
  border-top: 1px solid rgba(246, 241, 228, 0.14);
}
.quote-card .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--sea-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 12px;
  flex: none;
}

/* ---------- Features ---------- */
.features {
  background: var(--paper);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 760px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
.feature-item {
  background: var(--paper);
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: background 0.2s ease;
}
.feature-item:hover {
  background: var(--paper-2);
}
.feature-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold-deep);
  letter-spacing: 0.08em;
}
.feature-item h3 {
  font-size: 1.2rem;
  color: var(--sea-deep);
  line-height: 1.3;
}
.feature-item p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}
.feature-icon {
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--sea-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sea-deep);
}

/* ---------- Contact ---------- */
.contact {
  background: var(--paper-2);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-card {
  background: var(--paper-2);
  padding: 34px 32px;
  transition: background 0.2s ease;
}
.contact-card:hover {
  background: var(--paper-3);
}
.contact-card .glyph {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--coral);
  margin-bottom: 16px;
  display: block;
}
.contact-card h3 {
  font-size: 1.06rem;
  margin-bottom: 10px;
  color: var(--sea-deep);
}
.contact-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  color: rgba(246, 241, 228, 0.72);
  padding: 58px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(246, 241, 228, 0.14);
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
footer.site h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 500;
}
footer.site ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
footer.site a {
  color: rgba(246, 241, 228, 0.72);
  text-decoration: none;
  font-size: 14px;
}
footer.site a:hover {
  color: var(--gold);
}
footer.site .seal img {
  height: 64px;
  margin-bottom: 14px;
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 12.5px;
  color: rgba(246, 241, 228, 0.5);
  font-family: var(--mono);
}

/* ---------- Scroll to top ---------- */
.totop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 10px 26px -6px rgba(0, 0, 0, 0.35);
}
.totop.show {
  opacity: 1;
  pointer-events: auto;
}
.totop:hover {
  transform: translateY(-3px);
}

/* ---------- Modals (Login / Register / Data Privacy) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 30, 39, 0.62);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.modal-overlay.open {
  display: flex;
}
.modal-overlay[hidden] {
  display: none !important;
}

.modal {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  margin: auto;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.22s ease;
  min-width: 320px;
}
.modal.modal-wide {
  max-width: 640px;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 26px 0;
}
.modal-head .eyebrow {
  margin-bottom: 10px;
}
.modal-head h2 {
  font-size: 1.5rem;
  line-height: 1.15;
}
.modal-close {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  color: var(--sea-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.modal-close:hover {
  background: var(--sea-deep);
  color: var(--paper);
  border-color: var(--sea-deep);
}

.modal-body {
  padding: 20px 26px 28px;
  overflow-y: auto;
}
.modal-sub {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 6px 0 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.field input,
.field select {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus {
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(30, 79, 99, 0.14);
  outline: none;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 420px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.field-pw {
  position: relative;
}
.field-pw input {
  padding-right: 44px;
}
.field-pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(calc(-50% + 12px));
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.field-pw-toggle:hover {
  color: var(--sea-deep);
  background: rgba(30, 79, 99, 0.08);
}
.field-pw-toggle svg {
  pointer-events: none;
}
.field-pw-toggle .eye-off {
  display: none;
}
.field-pw-toggle[aria-pressed="true"] .eye-on {
  display: none;
}
.field-pw-toggle[aria-pressed="true"] .eye-off {
  display: block;
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 4px 0 20px;
}
.field-check input {
  margin-top: 3px;
  flex: none;
  width: 16px;
  height: 16px;
  accent-color: var(--sea-deep);
}
.field-check a {
  color: var(--sea);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.modal .btn {
  width: 100%;
  justify-content: center;
}
.modal .btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.form-alert[hidden] {
  display: none;
}
.form-alert.is-error {
  background: rgba(190, 91, 59, 0.1);
  border-color: rgba(190, 91, 59, 0.3);
  color: var(--coral-deep);
}
.form-alert.is-success {
  background: rgba(30, 79, 99, 0.09);
  border-color: rgba(30, 79, 99, 0.25);
  color: var(--sea-deep);
}
.form-alert svg {
  flex: none;
  margin-top: 2px;
}

.modal-foot-link {
  text-align: center;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.modal-foot-link button {
  color: var(--coral);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.modal-foot-link a {
  color: var(--sea);
  font-weight: 600;
}
.field-forgot {
  text-align: right;
  margin: -10px 0 20px;
}
.field-forgot a {
  font-size: 13px;
  color: var(--sea);
  text-decoration: none;
}
.field-forgot a:hover {
  text-decoration: underline;
}

.privacy-text {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.72;
}
.privacy-text h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sea-deep);
  margin: 22px 0 8px;
}
.privacy-text h3:first-child {
  margin-top: 0;
}
.privacy-text p {
  margin: 0 0 12px;
}
.privacy-text ul {
  margin: 0 0 12px;
  padding-left: 20px;
}
.privacy-text li {
  margin-bottom: 6px;
}
.privacy-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 20px;
}
