:root {
  color-scheme: light;
  --ink: #152e38;
  --muted: #556970;
  --accent: #0b6f64;
  --accent-dark: #07574f;
  --line: #dce6e6;
  --page: #f2f6f6;
  --white: #fff;
  --navy: #102b36;
  --font: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 1rem/1.55 var(--font); }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .66; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #16867a; outline-offset: 3px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 20px; }
.frame { width: min(calc(100% - 72px), 1180px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 9; top: 10px; left: 12px; padding: 9px 14px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { background: var(--navy); color: #edf7f8; }
.header-inner { display: flex; min-height: 65px; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1rem; font-weight: 700; letter-spacing: .085em; text-decoration: none; }
.brand-mark { display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid #40837c; border-radius: 9px; background: #1c4b4c; }
.brand-mark > span { position: relative; width: 17px; height: 17px; border: 1.5px solid #9be3cf; border-radius: 50%; }
.brand-mark > span::after { position: absolute; inset: 2px 4px; content: ""; background: #9be3cf; clip-path: polygon(100% 0, 70% 65%, 0 100%, 32% 35%); }
.header-nav { display: flex; align-items: center; gap: 25px; color: #c2d4d8; font-size: .875rem; }
.header-nav a { text-decoration: none; }
.header-nav a:hover { color: white; }
.site-header a:focus-visible { outline-color: #9be3cf; }

.hero { overflow: hidden; position: relative; isolation: isolate; display: flex; align-items: center; min-height: 264px; margin-block: 27px 29px; border-radius: 20px; color: #f5fbfa; background: #14343e; }
.hero::before { position: absolute; z-index: -2; inset: 0; content: ""; background: radial-gradient(ellipse at 75% 30%, #37626a 0%, #1c4650 38%, #14343e 73%); }
.hero.with-photo::before { background: url("landscape.webp") no-repeat right 48% / 78% auto; }
.hero::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, #112e39 0%, #112e39 28%, #112e39ed 42%, #112e3947 69%, #112e390a 100%); }
.hero-content { padding: 32px 48px; }
.hero h1 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.25rem); font-weight: 760; line-height: 1.18; letter-spacing: .025em; }
.hero h1 span { display: block; }
.hero p { margin: 18px 0 0; color: #d0e5e6; font-size: 1rem; }

.section-title { margin: 0; font-size: 1.25rem; font-weight: 730; letter-spacing: .025em; }
.dest-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 13px; }
.destination { position: relative; display: flex; align-items: center; gap: 12px; min-height: 71px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); text-align: left; color: var(--ink); transition: background-color .18s, border-color .18s; }
.destination:hover { background: #eaf5f1; border-color: #9cc3bc; }
.destination[aria-pressed="true"] { border-color: #4a9e8d; background: #dff1eb; box-shadow: inset 0 0 0 1px #4a9e8d; }
.flag { display: block; object-fit: cover; width: 32px; height: 22px; flex: 0 0 auto; border-radius: 3px; outline: 1px solid #16262b16; }
.flag-large { width: 37px; height: 25px; }
.destination-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.destination-name { font-size: .94rem; font-weight: 700; white-space: nowrap; }
.destination-currency { font-size: .8125rem; color: var(--muted); }
.country-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 28px 0 12px; }
.country-identity { display: flex; align-items: center; gap: 12px; }
.country-identity h2 { margin: 0; font-size: 1.45rem; line-height: 1.2; letter-spacing: .025em; }
.local-time { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.clock-icon { position: relative; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; }
.clock-icon::after { position: absolute; top: 2px; left: 5px; content: ""; width: 3px; height: 4px; border: solid currentColor; border-width: 0 0 1.4px 1.4px; }

.data-grid { display: grid; grid-template-columns: .87fr 1.13fr; gap: 16px; }
.panel { min-width: 0; display: flex; flex-direction: column; padding: 19px 22px 14px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.panel-head, .panel-title, .panel-foot { display: flex; align-items: center; }
.panel-head, .panel-foot { justify-content: space-between; gap: 12px; }
.panel-title { gap: 10px; }
.panel-title h3 { margin: 0; font-size: 1.12rem; font-weight: 720; white-space: nowrap; }
.tile-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; background: #e4f3ed; color: #146b60; font-size: 1.28rem; line-height: 1; font-weight: 650; }
.weather-icon { background: #e6f1f8; color: #326f94; font-size: 1.32rem; }
.tag { padding: 4px 9px; border-radius: 6px; background: #e8f4ee; color: #266958; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.rate-overview { padding-block: 17px 13px; }
.rate-basis, .rate-inverse { color: var(--muted); font-size: .875rem; }
.rate-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 11px; min-width: 0; }
.rate-number, .current-temp { font-size: clamp(2.12rem, 3.55vw, 2.95rem); font-weight: 710; line-height: 1.16; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.rate-code { font-size: .95rem; color: var(--accent-dark); font-weight: 730; }
.rate-inverse { min-height: 1.35em; margin: 4px 0 0; }
.converter { display: grid; grid-template-columns: minmax(0, 1fr) 35px minmax(0, 1fr); align-items: center; gap: 8px; margin: 2px 0 15px; }
.amount-control { display: flex; min-width: 0; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid #d7e4e3; border-radius: 8px; min-height: 42px; }
.converted-control { background: #f3f8f6; }
.amount-control input, .amount-control output { display: block; min-width: 0; width: 100%; font-variant-numeric: tabular-nums; font-weight: 650; padding: 0; }
.amount-control input { border: none; color: var(--ink); background: transparent; appearance: textfield; }
.amount-control input::-webkit-inner-spin-button { appearance: none; }
.amount-control output { overflow-wrap: anywhere; color: var(--accent-dark); line-height: 1.22; padding-block: 5px; }
.amount-unit { color: var(--muted); font-size: .8125rem; font-weight: 650; }
.swap { width: 35px; height: 35px; padding: 0; border: 1px solid #d7e4e3; background: #f1f7f5; color: var(--accent-dark); border-radius: 8px; font-size: 1.28rem; line-height: 1; }
.swap:hover { background: #dff1eb; }
.panel-foot { min-height: 35px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.text-button { min-height: 31px; padding: 1px 3px; color: var(--accent-dark); border: 0; background: transparent; font-size: .875rem; font-weight: 650; white-space: nowrap; }
.text-button:hover:not(:disabled) { text-decoration: underline; }

.select-wrap { position: relative; max-width: 53%; }
.select-wrap::after { position: absolute; right: 12px; top: calc(50% - 4px); width: 6px; height: 6px; border: solid #375f65; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); content: ""; pointer-events: none; }
.select-wrap select { appearance: none; display: block; width: 100%; min-height: 38px; padding: 4px 30px 4px 10px; color: var(--ink); border: 1px solid #d8e4e3; border-radius: 8px; background: #f8fbfa; font-size: .875rem; }
.conditions { display: flex; align-items: center; gap: 12px; min-height: 71px; }
.current-symbol { color: #28769a; font-size: 2.05rem; line-height: 1; }
.current-temp { letter-spacing: -.06em; white-space: nowrap; }
.current-details { display: grid; gap: 1px; min-width: 0; margin-left: 2px; font-size: .875rem; }
.current-details strong { font-weight: 680; }
.current-details span { color: var(--muted); font-size: .8125rem; }
.forecast { min-height: 89px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; list-style: none; padding: 0; margin: 4px 0 13px; }
.forecast li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 74px; padding: 5px 1px; border-radius: 9px; background: #f0f6f7; text-align: center; }
.forecast-day { font-size: .8rem; color: #466269; white-space: nowrap; }
.forecast-symbol { font-size: 1.1rem; line-height: 1.2; color: #326f94; }
.forecast-range { font-size: .8125rem; font-weight: 675; white-space: nowrap; font-variant-numeric: tabular-nums; }

.travel { margin: 26px 0 28px; }
.travel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.source-link { font-size: .875rem; font-weight: 650; color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.travel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.note { padding: 16px 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.note h3 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; font-size: .97rem; }
.note h3 span { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; border-radius: 6px; background: #e6f3ed; color: #176d60; font-size: .875rem; }
.note p, .travel-alert p { margin: 0; color: #455a61; font-size: .9375rem; line-height: 1.7; }
.note a { color: var(--accent-dark); text-underline-offset: 3px; }
.travel-alert { padding: 12px 15px; margin-bottom: 12px; border: 1px solid #e6c298; border-left: 4px solid #b97127; border-radius: 10px; background: #fff4e6; }
.travel-alert strong { color: #744013; font-size: .9375rem; }
.travel-alert p { color: #674929; }
.consular { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 9px 20px; margin-top: 12px; padding: 12px 16px; border: 1px solid #d1e2e0; border-radius: 11px; background: #e7f1f0; font-size: .875rem; }
.consular strong { font-weight: 700; }
.consular span { margin-left: 8px; color: var(--muted); }
.consular-phones { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 650; color: var(--accent-dark); }
.consular a { text-underline-offset: 3px; }
.site-footer { padding: 14px 0 23px; color: #556970; font-size: .8125rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 9px 20px; border-top: 1px solid #d8e4e4; padding-top: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 15px; }
.footer-links a { text-underline-offset: 3px; }

@media (max-width: 960px) {
  .frame { width: calc(100% - 44px); }
  .destination { padding-inline: 10px; gap: 7px; }
  .destination .flag { width: 27px; height: 18px; }
  .data-grid { grid-template-columns: .95fr 1.05fr; }
  .panel { padding-inline: 16px; }
}
@media (max-width: 730px) {
  .frame { width: calc(100% - 32px); }
  .header-inner { min-height: 57px; }
  .header-nav { gap: 15px; }
  .hero { margin-block: 16px 22px; min-height: 218px; border-radius: 15px; }
  .hero-content { padding: 26px 24px; }
  .hero.with-photo::before { background-size: cover; }
  .hero::after { background: linear-gradient(90deg, #112e39 0%, #112e39db 46%, #112e396b 100%); }
  .dest-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .destination { min-height: 60px; }
  .data-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .travel-grid { grid-template-columns: 1fr; gap: 8px; }
  .country-heading { margin-top: 23px; }
}
@media (max-width: 490px) {
  .destination { gap: 6px; padding-inline: 7px; }
  .destination-name { font-size: .84rem; }
  .destination .flag { width: 21px; height: 15px; }
  .forecast-range { font-size: .75rem; }
}
@media (max-width: 355px) {
  .dest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forecast-range { white-space: normal; }
}
@media (max-width: 380px) {
  .frame { width: calc(100% - 24px); }
  .brand { gap: 8px; font-size: .925rem; }
  .header-nav { gap: 12px; }
  .hero h1 { font-size: 1.85rem; }
  .local-time { font-size: .8125rem; }
  .country-identity { gap: 7px; }
  .country-identity h2 { font-size: 1.26rem; }
  .forecast { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
