:root {
  color-scheme: light;
  --bg: #f2f7fa;
  --surface: #ffffff;
  --ink: #112d40;
  --muted: #516a79;
  --line: #d9e5ec;
  --soft: #eaf5fa;
  --accent: #007dba;
  --accent-bright: #44d2ed;
  --navy: #071c30;
  --card-shadow: 0 20px 60px rgba(14, 48, 75, .07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, p { margin-top: 0; }
h2 { font-size: clamp(1.4rem, 2.3vw, 1.85rem); line-height: 1.15; letter-spacing: -.035em; }
:focus-visible { outline: 3px solid #ffb24a; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; z-index: 100; top: -80px; left: 14px; padding: 12px 20px; border-radius: 8px; background: white; color: #071c30; }
.skip:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; min-height: 76px; padding: 10px max(22px, calc((100vw - 1320px)/2)); gap: 24px; background: #071625; border-bottom: 1px solid #224055; }
.brand { display: inline-flex; align-items: center; gap: 18px; color: #dfedf4; text-decoration: none; min-width: 0; }
.brand img { display: block; width: 155px; max-width: 100%; height: auto; object-fit: contain; }
.brand span { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; white-space: nowrap; border-left: 1px solid #31506b; padding-left: 18px; }
nav { display: flex; align-items: center; gap: 20px; }
nav>a { color: #d4e5f0; font-weight: 650; font-size: 14px; text-decoration: none; }
nav>a:hover { color: #fff; }
.nav-label-mobile { display: none; }
.look-label { display: flex; align-items: center; gap: 8px; color: #c5dbe8; font-size: 12px; }
.look-label select { background: #10283c; border: 1px solid #2c506a; color: #eef9ff; border-radius: 9px; min-height: 44px; padding: 8px 10px; width: 100px; }
.help-top { border: 1px solid #2f627e; color: white; background: #123b59; min-height: 44px; padding: 0 15px; border-radius: 24px; font-weight: 750; }
.help-top span { color: #6be0f4; }

main { max-width: 1330px; padding: 22px 20px 64px; margin: 0 auto; }
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: center; min-height: 290px; padding: clamp(22px, 3vw, 34px); border-radius: 24px; color: white; background: radial-gradient(circle at 85% 19%, #13749c 0, transparent 30%), linear-gradient(115deg, #06172b, #103551 75%, #0b2342); }
.hero::after { content: ""; position: absolute; inset: auto -20% -75% 25%; height: 240px; transform: rotate(-12deg); background: linear-gradient(90deg, transparent, #48a6c02e, transparent); pointer-events: none; }
.eyebrow { font-size: 11px; font-weight: 820; letter-spacing: .17em; text-transform: uppercase; color: #02b2df; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; color: #93ddeb; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #60dfd2; box-shadow: 0 0 0 4px #60dfd226; }
.hero h1 { margin: 10px 0 14px; font-size: clamp(2.35rem, 4.4vw, 3.6rem); line-height: 1.03; letter-spacing: -.058em; }
.hero h1 span { color: #62d7ee; }
.hero-description { font-size: clamp(15px, 1.45vw, 18px); max-width: 590px; color: #cbdbe6; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 12px; }
.hero-honesty { margin: 0; color: #a8c0cf; font-size: 12px; }
.hero-honesty span { color: #80dfb4; margin-right: 5px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 47px; padding: 11px 18px; border-radius: 13px; border: 1px solid transparent; font-size: 14px; font-weight: 780; text-decoration: none; text-align: center; line-height: 1.25; }
.button.primary { color: #061f34; background: #75daf0; border-color: #75daf0; }
.button.primary:hover { background: #b7f1fc; }
.button.ghost { color: white; background: #ffffff12; border-color: #ffffff3f; }
.button.ghost:hover { background: #ffffff20; }
.button.outline { color: var(--ink); background: var(--surface); border-color: var(--line); }
.button.outline:hover { border-color: var(--accent); }
.button.subtle { color: var(--accent); background: var(--soft); border-color: var(--line); }
.button:disabled { background: #e7ecee; color: #7b919d; border-color: #d6e3e9; opacity: 1; }
.hero-visual { display: flex; flex-direction: column; position: relative; min-width: 0; padding: 14px 16px 12px; border: 1px solid #78c1d03b; border-radius: 20px; background: #06182b82; backdrop-filter: blur(8px); box-shadow: inset 0 0 40px #39e0ff0c; }
.flight-card { padding: 12px 16px; border: 1px solid #78c1d03b; border-radius: 14px; background: #ffffff10; }
.flight-card span, .flight-card small { display: block; color: #b1cddc; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.flight-card strong { display: block; font-size: clamp(1.9rem, 3.4vw, 3.2rem); font-weight: 850; letter-spacing: -.055em; margin: 6px 0; }
.flight-card.port-card { text-align: right; }
.flight-card.port-card strong { color: #8bdfef; }
.flight-track { display: flex; height: 38px; position: relative; align-items: center; justify-content: center; }
.track-line { position: absolute; width: 2px; height: 100%; border-left: 2px dashed #7bdff085; }
.track-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; color: #052338; background: #a8f0ff; border-radius: 50%; transform: rotate(90deg); font-size: 21px; }
.track-label { position: absolute; right: calc(50% + 18px); margin-right: 15px; font-size: 10px; letter-spacing: .13em; white-space: nowrap; color: #99c9da; }
.visual-foot { margin-top: 16px; color: #89aabf; font-size: 10px; text-align: center; letter-spacing: .03em; }

.planner-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 22px; align-items: start; margin-top: 24px; scroll-margin-top: 94px; }
.form-panel, .result-panel { min-width: 0; border-radius: 22px; padding: clamp(20px, 2.3vw, 32px); box-shadow: var(--card-shadow); }
.form-panel { border: 1px solid var(--line); background: var(--surface); }
.result-panel { background: var(--navy); color: #effaff; border: 1px solid #153950; }
.section-kicker { display: flex; align-items: center; gap: 10px; color: #008cba; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.section-kicker span { color: var(--muted); font-weight: 750; }
.result-panel .section-kicker { color: #62d4eb; }
.result-panel .section-kicker span { color: #a7c6d6; }
.panel-heading { margin: 15px 0 24px; }
.panel-heading h2 { margin-bottom: 8px; }
.panel-heading p { color: var(--muted); font-size: 14px; margin: 0; }
.fields { display: grid; gap: 14px; margin-bottom: 14px; }
.fields.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { min-width: 0; }
.field-label { display: flex; align-items: center; flex-wrap: wrap; min-height: 36px; margin-bottom: 5px; }
.field-label label { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px; font-size: 12px; font-weight: 770; }
.optional { color: #708898; font-weight: 500; font-size: 11px; }
.field select, .field input { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; color: var(--ink); border: 1px solid #cadce5; background: var(--surface); border-radius: 10px; font-size: 14px; }
.field select:focus, .field input:focus { border-color: var(--accent); }
.info { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -6px 0 -6px 0; border: 0; color: transparent; background: transparent; border-radius: 50%; font-size: 0; }
.info::before { content: "i"; display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #c2d3dc; color: #397a9c; background: #f4fafc; border-radius: 50%; font-size: 11px; font-weight: 850; }
.info:hover::before { background: #e2f6fd; }
.reference-link { display: inline-flex; margin-top: 7px; font-size: 12px; }
.compact-fields .field input { max-width: 175px; }
.paste-details { margin: 0 0 18px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.paste-details summary { cursor: pointer; font-weight: 790; font-size: 14px; }
.paste-details summary span { display: block; font-weight: 480; color: var(--muted); font-size: 12px; }
.details-body { padding-top: 14px; }
.details-body label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 750; }
.details-body textarea { width: 100%; resize: vertical; min-height: 86px; padding: 12px; color: var(--ink); background: var(--surface); border: 1px solid #cadce5; border-radius: 9px; }
.small-button { color: var(--ink); background: var(--surface); border-color: var(--line); margin-top: 8px; }
.fine { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.result-heading h2 { margin: 0; }
.mini-tag { display: inline-flex; align-items: center; min-height: 26px; border-radius: 30px; padding: 5px 10px; border: 1px solid #467a91; color: #addef0; font-size: 11px; font-weight: 760; text-align: center; }
.mini-tag[data-status=recommended] { background: #173f37; border-color: #3a806d; color: #a5efc9; }
.mini-tag[data-status=none] { background: #4c2d24; border-color: #ab6a4b; color: #ffd8c0; }
.recommendation { padding: 23px; border: 1px solid #254c64; background: linear-gradient(125deg, #12344c, #08263b); border-radius: 16px; }
.overline { display: block; color: #a7bfcf; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.pickup-time { margin: 11px 0 8px; font-weight: 850; font-size: clamp(1.8rem, 3.2vw, 3.25rem); letter-spacing: -.045em; line-height: 1.1; color: #7fe3f3; }
.pickup-time[data-status=quote], .pickup-time[data-status=none], .pickup-time[data-status=need-time] { font-size: clamp(1.35rem, 2.2vw, 2rem); }
#pickup-message { color: #c6dbe5; font-size: 13px; line-height: 1.45; }
.schedule-options { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.slot-prefix { flex-basis: 100%; color: #aec3d2; font-size: 11px; }
.slot-chip { display: inline-flex; padding: 5px 10px; border: 1px solid #416278; border-radius: 20px; color: #aec9d9; font-size: 11px; }
.slot-chip.selected { background: #234a47; color: #a4f1d6; border-color: #3aa286; font-weight: 750; }
.route-summary { padding: 20px 7px 4px; }
.route-stop { display: flex; gap: 14px; align-items: flex-start; }
.stop-symbol { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #042b3b; background: #89e9f4; font-size: 13px; font-weight: 850; }
.stop-symbol.endpoint { color: #d9fcff; background: #226886; }
.route-stop strong { display: block; font-size: 14px; font-weight: 750; }
.route-stop small { display: block; margin-top: 3px; font-size: 11px; color: #9bb8ca; }
.route-connector { position: relative; display: flex; align-items: center; height: 54px; margin-left: 15px; border-left: 2px dashed #5594ae; }
.route-connector span { margin-left: 29px; font-size: 10px; color: #6b9aaf; letter-spacing: .16em; }
.schedule-warning { display: flex; align-items: flex-start; gap: 10px; border-top: 1px solid #284759; padding-top: 17px; margin-top: 12px; }
.schedule-warning span { color: #66daf0; }
.schedule-warning p { color: #b3cbd8; font-size: 12px; margin: 0; }
.result-actions { display: grid; gap: 9px; margin-top: 22px; }
.result-actions>.button { width: 100%; }
.result-panel .button.outline { background: #0d2c44; color: #e2f4ff; border-color: #3b5d70; }
.result-panel .button.outline:hover { background: #143e5b; }
.result-panel .button.subtle { background: #16425a; border-color: #31576a; color: #d3f7ff; }
.result-panel .button:disabled { background: #173248; color: #8096a7; border-color: #244558; }
.button-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.text-link { justify-self: center; font-size: 12px; color: #91d9eb; }
.action-feedback { min-height: 18px; margin: 9px 0; color: #aaf3d2; font-size: 12px; }
.booking-note { border-top: 1px solid #2b485c; padding-top: 15px; color: #9db9c7; }

.ports-section { margin-top: 58px; }
.section-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin: 16px 0 20px; }
.section-title-row h2 { margin-bottom: 9px; }
.section-title-row p { max-width: 760px; color: var(--muted); margin: 0; font-size: 14px; }
.section-link { white-space: nowrap; font-size: 13px; }
.port-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.port-choice { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 164px; padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-align: left; box-shadow: 0 6px 22px #0f35400a; }
.port-choice:hover { border-color: #76bdcf; transform: translateY(-2px); }
.port-choice.active { border: 2px solid #00a4ce; background: var(--soft); padding: 18px; }
.port-choice span { font-size: 10px; letter-spacing: .1em; font-weight: 850; color: var(--accent); }
.port-choice strong { font-size: 19px; line-height: 1.2; margin: 13px 0 6px; }
.port-choice small { display: block; font-size: 12px; color: var(--muted); }
.port-choice em { margin-top: auto; padding-top: 13px; color: var(--accent); font-size: 12px; font-weight: 790; font-style: normal; }
.operations { margin-top: 52px; padding: clamp(24px, 4vw, 42px); border-radius: 22px; display: grid; grid-template-columns: .8fr 1fr; gap: 40px; background: #dbeef5; }
.operations h2 { max-width: 400px; margin: 12px 0; }
.operations p { color: #4b6878; font-size: 14px; }
.ops-list { display: flex; flex-direction: column; gap: 17px; justify-content: center; }
.ops-list>div { display: flex; align-items: flex-start; gap: 13px; padding: 17px; border-radius: 13px; background: #ffffffa1; }
.ops-list strong { display: block; margin-bottom: 3px; font-size: 14px; }
.ops-list p { margin: 0; font-size: 12px; }
.ops-icon { display: grid; place-items: center; flex: 0 0 auto; width: 27px; height: 27px; border-radius: 9px; color: #066b57; background: #c1f1db; font-weight: 850; }
.ops-icon.pending { color: #39627c; background: #d0e3ec; }
.contact { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 32px 4px; margin-top: 18px; }
.contact h2 { margin-bottom: 8px; }
.contact p { color: var(--muted); margin: 0; font-size: 13px; }
.contact-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.site-footer { background: #071625; color: #aac2d1; padding: 28px max(20px, calc((100vw - 1320px)/2)); }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 13px; }
.footer-brand img { width: 115px; height: auto; }
.footer-brand span { color: #e1eff6; font-size: 12px; }
.site-footer p { margin: 0; max-width: 1140px; color: #9db7c7; font-size: 11px; }
.site-footer a { color: #87d9ef; }

[data-tip] { position: relative; }
@media(hover:hover) and (pointer:fine) {
  button[data-tip]:not(.port-choice):hover::after, a[data-tip]:hover::after, select[data-tip]:hover::after {
    position: absolute; z-index: 40; inset: auto auto calc(100% + 9px) calc(50% + var(--tip-shift, 0px)); transform: translateX(-50%);
    width: max-content; max-width: min(280px, 80vw); padding: 8px 11px; border-radius: 8px;
    content: attr(data-tip); background: #071c30; color: #fff; font-size: 11px; font-weight: 500;
    line-height: 1.35; box-shadow: 0 8px 20px #0003; pointer-events: none;
  }
}
dialog { width: min(520px, calc(100vw - 26px)); max-height: min(90vh, 640px); padding: 26px; border: 1px solid #bee0ec; border-radius: 20px; color: #133148; background: #f9fdff; box-shadow: 0 35px 100px #02182970; }
dialog::backdrop { background: #031526bf; backdrop-filter: blur(4px); }
.dialog-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.dialog-head h2 { margin: 8px 0 10px; }
.dialog-close { width: 44px; height: 44px; border: 1px solid #bfd7df; border-radius: 12px; background: white; color: #123148; }
.dialog-content { font-size: 15px; color: #355d71; line-height: 1.65; }

html[data-look=night] { color-scheme: dark; --bg: #091b2b; --surface: #142d40; --ink: #e8f3fa; --muted: #b7cbd7; --line: #2c5065; --soft: #1b394e; --accent: #72d9f1; --navy: #041321; }
html[data-look=night] .field input, html[data-look=night] .field select, html[data-look=night] textarea { border-color: #3a6378; }
html[data-look=night] .info::before { background: #153d54; color: #bdefff; border-color: #46748b; }
html[data-look=night] .optional { color: #a7c0ce; }
html[data-look=night] .operations { background: #19384a; }
html[data-look=night] .operations p { color: #c2d4de; }
html[data-look=night] .ops-list>div { background: #26485b; }
html[data-look=sunset] { --bg: #fff5ee; --surface: #fffaf5; --ink: #4a3140; --muted: #775e6d; --line: #eed7d2; --soft: #fbebdf; --accent: #b94e46; }
html[data-look=sunset] .operations { background: #f6e6dc; }
html[data-look=sunset] .operations p { color: #735968; }

@media(max-width: 1100px) {
  .hero { grid-template-columns: 1fr .82fr; }
  .brand span { display: none; }
  .port-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media(max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .planner-grid { grid-template-columns: 1fr; }
  .operations { grid-template-columns: 1fr; gap: 10px; }
}
@media(max-height: 500px) and (min-width: 621px) and (max-width: 900px) {
  main { padding-top: 10px; }
  .hero { min-height: 0; padding: 16px 20px; }
  .hero h1 { font-size: 2.25rem; margin: 4px 0 8px; }
  .hero-description { margin-bottom: 8px; }
  .hero-actions { margin: 8px 0; }
  .hero-honesty { font-size: 11px; }
}
@media(max-width: 620px) {
  .site-header { gap: 8px; padding: 9px 10px; }
  .brand { flex-shrink: 0; }
  .brand .go3d-text-identity { font-size: 11px !important; letter-spacing: .02em !important; }
  .brand img { width: 112px; }
  nav { gap: 6px; }
  nav>a { display: none; }
  nav>a[href="#planner"] { display: inline-flex; align-items: center; min-height: 44px; padding: 0 7px; border: 1px solid #31506b; border-radius: 9px; font-size: 12px; white-space: nowrap; }
  .nav-label-full { display: none; }
  .nav-label-mobile { display: inline; }
  .look-label { flex-shrink: 0; gap: 5px; font-size: 0; }
  .look-label select { width: 83px; padding: 8px 6px; font-size: 12px; }
  .help-top { padding: 0 8px; }
  main { padding: 12px 12px 40px; }
  .hero { padding: 24px 20px; border-radius: 17px; min-height: auto; }
  .hero h1 { font-size: clamp(2.25rem, 10.2vw, 3.45rem); }
  .hero-actions .button { flex: 1 1 120px; }
  .planner-grid { gap: 12px; margin-top: 13px; }
  .form-panel, .result-panel { padding: 20px 16px; border-radius: 17px; }
  .fields.two-cols { grid-template-columns: 1fr; gap: 12px; }
  .field input, .field select, .details-body textarea { font-size: 16px; }
  .compact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .field-label { margin-bottom: 3px; }
  .recommendation { padding: 17px; }
  .pickup-time { font-size: 2.35rem; }
  .result-heading { align-items: flex-start; }
  .mini-tag { max-width: 120px; }
  .port-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .port-choice { min-height: 164px; padding: 15px; }
  .port-choice.active { padding: 14px; }
  .port-choice strong { font-size: 17px; }
  .section-title-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .operations { padding: 24px 19px; }
  .contact { flex-direction: column; align-items: flex-start; }
  .contact-actions { width: 100%; }
  .contact-actions .button { flex-grow: 1; }
  .site-footer { padding: 25px 18px; }
}
@media(max-width: 390px) {
  .brand img { width: 94px; }
  .look-label select { width: 76px; font-size: 11px; }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .button-pair { grid-template-columns: 1fr; }
  .port-grid { grid-template-columns: 1fr; }
  .port-choice { min-height: 137px; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hero-actions .button { flex: 0 1 auto; min-height: 44px; padding: 10px 8px; font-size: 12px; }
}
@media(max-width: 380px) {
  .look-label { display: none; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
