:root {
  --ink: #202a35;
  --muted: #5d6978;
  --line: #dfe5ec;
  --line-soft: #eaf0f5;
  --link: #225e9b;
  --link-hover: #164772;
  --accent-soft: #f0f6ff;
  --surface: #f7f9fc;
  --white: #fff;
  --max: 1140px;
  --font-heading: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 28px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--link); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #9bbfe7;
  outline-offset: 4px;
}
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--ink); overflow-wrap: break-word; }
h1 { font-size: 42px; font-weight: 750; line-height: 1.18; margin: 12px 0 22px; letter-spacing: -.035em; }
h2 { font-size: 32px; font-weight: 750; line-height: 1.25; margin: 0 0 24px; letter-spacing: -.025em; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.4; margin: 0 0 12px; letter-spacing: -.012em; }
p + p { margin-top: 17px; }
.container { width: calc(100% - 48px); max-width: var(--max); margin: auto; }

/* Keep the existing portal header and mobile menu behavior. */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { min-height: 74px; display: flex; align-items: center; gap: 28px; }
.brand { font-family: var(--font-heading); font-size: 23px; font-weight: 750; letter-spacing: -.035em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand:hover { color: var(--ink); }
.main-nav { display: flex; gap: 25px; align-items: center; margin-left: auto; font-size: 15px; }
.main-nav a { text-decoration: none; color: #475569; }
.main-nav a:hover { color: var(--link); }
.language { position: relative; font-size: 14px; }
.language summary { cursor: pointer; padding: 6px 10px; list-style: none; border: 1px solid #cfd8e3; border-radius: 6px; line-height: 1.5; }
.language summary::-webkit-details-marker { display: none; }
.language summary::after { content: ' ▾'; font-size: 12px; color: #697787; }
.language[open] summary { border-color: #8aaed3; }
.language-menu { position: absolute; right: 0; top: calc(100% + 7px); background: var(--white); border: 1px solid var(--line); border-radius: 7px; min-width: 165px; z-index: 40; padding: 6px; box-shadow: 0 8px 24px #24374e12; }
.language-menu a { display: block; padding: 8px 11px; text-decoration: none; border-radius: 4px; }
.language-menu a:hover, .language-menu .active { background: var(--accent-soft); }
.language-menu .active { font-weight: 600; }
.breadcrumb { font-size: 13px; color: var(--muted); padding-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; line-height: 1.6; }
.breadcrumb a { color: #536579; text-decoration: none; }
.breadcrumb a:hover { color: var(--link); text-decoration: underline; }
.breadcrumb .separator { color: #94a1b0; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 235px; gap: 52px; align-items: start; padding-bottom: 62px; }
.page-content { min-width: 0; }
.page-header { padding: 17px 0 32px; border-bottom: 1px solid var(--line); margin-bottom: 33px; }
.page-header .intro { font-size: 18px; line-height: 1.72; color: #46525f; }

.landing-page { padding-top: 28px; padding-bottom: 48px; }
.landing-page .page-header { max-width: 850px; }
.landing-months { margin-top: 20px; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); }
.landing-months .month-name { margin-bottom: 0; }
.landing-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 28px; padding-left: 22px; }
.landing-links li { padding-left: 2px; }

/* Компактное переключение месяцев; подробные температуры раскрываются отдельно. */
.month-calendar { margin-top: 27px; scroll-margin-top: 95px; }
.calendar-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap; margin-bottom: 11px; }
.month-nav-label { font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.5; color: #334155; margin: 0; }
.calendar-current { margin: 0; color: #194f87; font-size: 14px; line-height: 1.5; font-weight: 600; }
.month-switcher { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.month-switcher a { padding: 9px 5px; border: 1px solid #d5dfe9; border-radius: 6px; text-align: center; font-size: 14px; line-height: 1.5; text-decoration: none; color: var(--ink); }
.month-switcher a:hover { border-color: #417bb7; background: #f1f6fc; }
.month-switcher a[aria-current='page'] { color: #fff; background: #245c93; border-color: #245c93; font-weight: 650; }
.month-comparison { margin-top: 11px; }
.month-comparison > summary { width: fit-content; cursor: pointer; color: var(--link); font-size: 14px; line-height: 1.5; padding: 4px 0; }
.month-comparison[open] > summary { margin-bottom: 10px; }
.month-comparison .calendar-location { margin-bottom: 11px; }
.sidebar a[aria-current='page'] { color: #194f87; font-weight: 650; }
.calendar-location { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }
.month-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.month-card {
  display: block;
  min-width: 0;
  padding: 14px 17px 15px;
  border: 1px solid #d5dfe9;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 130ms ease, background-color 130ms ease;
}
.month-card:hover { background: #f8fbff; border-color: #9fbddc; color: var(--ink); }
.month-card[aria-current='page'] { border-color: #417bb7; background: var(--accent-soft); box-shadow: inset 0 2px 0 #417bb7; }
.month-name { display: block; font-size: 17px; font-weight: 650; line-height: 1.4; margin-bottom: 12px; }
.month-card[aria-current='page'] .month-name { color: #194f87; }
.month-temperatures { display: grid; gap: 5px; }
.temperature-item { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.temperature-label { font-size: 13px; font-weight: 400; color: #5a6878; line-height: 1.5; }
.temperature-value { font-size: 20px; font-weight: 600; line-height: 1.45; color: #253548; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.02em; }
.temperature-range { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 2px; max-width: 100%; white-space: normal; }
.temperature-range span { white-space: nowrap; }

/* Search remains a useful selection control within the article surface. */
.destination-search { position: relative; margin: 25px 0 0; }
.search-form > label { display: block; margin-bottom: 9px; font-size: 15px; font-weight: 600; color: #334155; line-height: 1.5; }
.search-field { display: flex; align-items: center; min-height: 55px; border: 1px solid #bdcbd9; border-radius: 8px; background: var(--white); transition: border-color 130ms ease, box-shadow 130ms ease; }
.search-field:focus-within { border-color: #4a7fb5; box-shadow: 0 0 0 3px #e7effa; }
.search-field input { flex: 1; min-width: 0; width: 100%; border: 0; outline: none; background: transparent; color: var(--ink); padding: 14px 16px; font-size: 16px; line-height: 1.5; border-radius: 8px; }
.search-field input:focus-visible { outline: none; }
.search-field input::placeholder { color: #657487; opacity: 1; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-clear { flex: 0 0 auto; min-height: 40px; margin: 0 6px 0 0; padding: 7px 10px; border: 0; border-radius: 4px; background: transparent; color: #4d647c; font-size: 13px; line-height: 1.5; }
.search-clear:hover { background: #f0f4f8; color: var(--link); }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 35; max-height: min(65vh, 475px); overflow-y: auto; border: 1px solid #cfdbe7; border-radius: 8px; background: var(--white); box-shadow: 0 12px 30px #24374e1a; }
.search-result-heading { padding: 13px 17px 10px; border-bottom: 1px solid var(--line-soft); color: #5b6a7b; font-size: 13px; font-weight: 500; line-height: 1.5; }
.search-result-list { margin: 0; padding: 5px 0; list-style: none; }
.search-result-list li { margin: 0; padding: 0; }
.search-result { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 13px 17px; text-decoration: none; color: var(--ink); line-height: 1.5; }
.search-result:hover { background: #f5f8fc; color: var(--ink); }
.search-result-active { background: var(--accent-soft); color: var(--link); }
.search-result:focus-visible { outline-offset: -3px; }
.search-result-name { font-size: 16px; font-weight: 600; }
.search-result-meta { font-size: 13px; color: #5d6d7f; text-align: right; max-width: 48%; }
.search-empty { padding: 17px; font-size: 15px; line-height: 1.6; color: #526174; margin: 0; }
.search-hint, .search-status { font-size: 13px; color: var(--muted); margin-top: 8px; }

.sidebar { padding-top: 30px; font-size: 14px; }
.sidebar section { border-top: 1px solid var(--line); padding: 19px 0; margin-bottom: 12px; }
.sidebar h2 { font-size: 16px; font-weight: 650; line-height: 1.45; letter-spacing: -.01em; margin-bottom: 12px; }
.sidebar a { display: block; margin: 9px 0; line-height: 1.6; text-decoration: none; }
.sidebar a:hover { text-decoration: underline; }
.sidebar .desktop-toc a { color: #536477; }
.sidebar .desktop-toc a:hover { color: var(--link); }
.sidebar a[aria-current='page'] { font-weight: 650; color: #214f7b; }
.article-section { padding: 0 0 36px; margin-bottom: 38px; border-bottom: 1px solid var(--line); }
.article-section:last-child { border-bottom: 0; }
.article-section p { line-height: 1.72; }
.article-section h3 { margin-top: 30px; }
.article-section > h2 + h3 { margin-top: 20px; }
.entry { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.entry:first-child { padding-top: 0; }
.entry:last-child { border-bottom: 0; padding-bottom: 0; }
.entry h3 { margin: 0 0 10px; }
.entry h3 a { text-decoration-color: transparent; }
.entry h3 a:hover { text-decoration-color: currentColor; }
.entry p { font-size: 17px; line-height: 1.72; color: #475360; }
.entry .entry-meta { color: var(--muted); font-size: 14px; margin-top: 9px; }

/* Quiet table geometry keeps comparisons readable. */
.table-wrap { max-width: 100%; overflow-x: auto; margin: 20px 0 14px; border: 1px solid var(--line); border-radius: 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0; line-height: 1.55; }
.data-table caption { text-align: left; font-size: 15px; font-weight: 600; color: #3e4e60; padding: 14px 15px; background: var(--white); border-bottom: 1px solid var(--line); }
.data-table th, .data-table td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-size: 14px; font-weight: 600; background: var(--surface); color: #4f5e70; }
.data-table tbody th { font-weight: 600; }
.data-table tbody tr:nth-child(even) { background: #fbfcfd; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td:not(:first-child) { font-variant-numeric: tabular-nums; }
.data-table a { font-weight: 600; text-decoration-color: transparent; }
.data-table a:hover { text-decoration-color: currentColor; }
.data-note { font-size: 13px !important; line-height: 1.65 !important; color: var(--muted); }
.weather-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 15px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.weather-summary > div { min-width: 0; padding: 17px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.weather-summary > div:nth-child(3n) { border-right: 0; }
.weather-summary > div:nth-last-child(-n + 3) { border-bottom: 0; }
.weather-summary dt { font-size: 15px; line-height: 1.5; color: #566477; }
.weather-summary dd { margin: 5px 0 4px; font-size: 29px; font-weight: 600; line-height: 1.35; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.weather-summary small { display: block; font-size: 13px; line-height: 1.55; color: var(--muted); }
.brief-answer { font-weight: normal; }
.text-list { margin: 17px 0; padding: 0; list-style: none; }
.text-list li { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.text-list li:last-child { border-bottom: 0; }
.facts-line { font-size: 14px !important; color: #526174; margin-bottom: 10px !important; }
.faq details { padding: 18px 0; border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding-right: 34px; font-size: 18px; font-weight: 600; line-height: 1.6; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 3px; top: -1px; color: #687b90; font-size: 23px; font-weight: 400; line-height: 1.3; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 14px; font-size: 18px; color: #485767; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.two-columns h3 { margin-top: 0; }
.inline-note { margin: 19px 0; font-size: 14px; color: #536579; }
.traveler-review { padding: 24px 0; border-top: 1px solid var(--line-soft); }
.traveler-review:first-child { padding-top: 0; border-top: 0; }
.traveler-review:last-child { padding-bottom: 0; }
.traveler-review h3 { margin: 0 0 12px; }
.review-kind { margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.review-quote { margin: 0; font-style: normal; }
.review-quote-text { white-space: pre-line; }
.review-disclosure summary { cursor: pointer; list-style: none; }
.review-disclosure summary::-webkit-details-marker { display: none; }
.review-preview { display: block; line-height: 1.72; }
.review-expand, .review-collapse { display: block; margin-top: 10px; color: var(--link); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.review-collapse { display: none; }
.review-disclosure[open] .review-preview, .review-disclosure[open] .review-expand { display: none; }
.review-disclosure[open] .review-collapse { display: block; margin: 0 0 12px; }
.review-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 15px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.review-author { font-weight: 600; color: #475360; }
.review-source { text-decoration-thickness: 1px; }
.related-links { display: flex; gap: 10px 20px; flex-wrap: wrap; margin-top: 13px; }
.site-footer { border-top: 1px solid var(--line); padding: 27px 0 32px; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 22px; }
.footer-links { display: flex; gap: 19px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.about-content { max-width: 800px; margin: 34px auto 60px; }
.about-content h2 { margin-top: 38px; }
.about-content p { margin-bottom: 18px; }
.about-content .credits { font-size: 14px; color: #526174; }
.about-content .credits a { word-break: break-word; }
.skip-link { position: absolute; left: -9999px; top: 10px; background: var(--white); padding: 10px; z-index: 100; font-size: 15px; }
.skip-link:focus { left: 10px; }
.mobile-toc { display: none; }
.empty-page { padding: 40px 0 80px; }

@media (max-width: 960px) {
  .page-layout { grid-template-columns: minmax(0, 1fr) 195px; gap: 32px; }
  .container { width: calc(100% - 36px); }
  h1 { font-size: 38px; }
  .main-nav { gap: 16px; }
  .data-table th, .data-table td { padding: 12px 10px; }
  .month-card { padding: 13px 13px 14px; }
  .temperature-value { font-size: 19px; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .container { width: calc(100% - 30px); }
  .header-inner { min-height: 60px; gap: 14px; }
  .brand { font-size: 20px; }
  .main-nav { gap: 13px; font-size: 13px; }
  .main-nav .desktop-link { display: none; }
  .language { font-size: 13px; }
  .language summary { padding: 4px 7px; }
  .breadcrumb { padding-top: 20px; font-size: 12px; gap: 6px; }
  .page-layout { display: block; padding-bottom: 30px; }
  .page-header { padding: 10px 0 25px; margin-bottom: 27px; }
  h1 { font-size: 32px; margin: 13px 0 20px; }
  h2 { font-size: 28px; margin-bottom: 22px; }
  h3 { font-size: 20px; }
  .page-header .intro { font-size: 17px; line-height: 1.72; }
  .calendar-heading { display: block; }
  .month-calendar { margin-top: 24px; }
  .month-switcher { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .month-switcher a { font-size: 13px; padding: 10px 3px; }
  .calendar-current { font-size: 13px; margin-top: 4px; }
  .month-nav-label { font-size: 15px; }
  .calendar-location { font-size: 12px; margin-top: 4px; }
  .month-nav { gap: 8px; }
  .month-card { padding: 12px 10px; border-radius: 6px; }
  .month-name { font-size: 15px; margin-bottom: 10px; }
  .temperature-item { gap: 4px; flex-wrap: wrap; }
  .temperature-label { font-size: 12px; }
  .temperature-value { font-size: 15px; }
  .month-temperatures { gap: 6px; }
  .destination-search { margin-top: 22px; }
  .search-form > label { font-size: 15px; }
  .search-field { min-height: 52px; }
  .search-field input { padding: 13px 12px; }
  .search-clear { padding: 7px 8px; margin-right: 4px; font-size: 12px; }
  .search-result { padding: 12px 13px; gap: 10px; }
  .search-result-heading { padding: 12px 13px 9px; }
  .search-result-meta { font-size: 12px; }
  .sidebar { padding-top: 0; margin-top: 17px; display: grid; grid-template-columns: 1fr; gap: 0; }
  .sidebar .desktop-toc { display: none; }
  .sidebar section { margin-bottom: 0; padding: 19px 0; }
  .sidebar a { display: inline-block; margin: 6px 16px 6px 0; }
  .sidebar h2 { margin-bottom: 9px; }
  .article-section { padding-bottom: 30px; margin-bottom: 32px; }
  .article-section h3 { margin-top: 26px; }
  .article-section > h2 + h3 { margin-top: 16px; }
  .traveler-review h3 { margin-top: 0; }
  .review-meta { font-size: 13px; gap: 6px 14px; }
  .entry { padding: 20px 0; }
  .entry h3 { margin-top: 0; }
  .entry p { font-size: 17px; }
  .table-wrap { border-radius: 6px; margin: 18px 0 13px; }
  .data-table { font-size: 14px; }
  .data-table th, .data-table td { padding: 11px 8px; line-height: 1.5; }
  .data-table thead th { font-size: 13px; }
  .data-table caption { font-size: 14px; padding: 12px 10px; }
  .weather-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 6px; }
  .weather-summary > div { padding: 14px 14px; }
  .weather-summary > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .weather-summary > div:nth-child(2n) { border-right: 0; }
  .weather-summary > div:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .weather-summary > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .weather-summary dd { font-size: 27px; }
  .weather-summary dt { font-size: 14px; }
  .weather-summary small { font-size: 12px; }
  .two-columns { grid-template-columns: 1fr; gap: 22px; }
  .data-note { font-size: 12px !important; }
  .faq summary { font-size: 17px; }
  .faq details p { font-size: 17px; }
  .footer-inner { display: block; }
  .footer-links { margin-top: 12px; gap: 17px; }
  .mobile-toc { display: block; border: 1px solid var(--line); border-radius: 6px; padding: 13px 14px; margin: 25px 0; }
  .mobile-toc summary { cursor: pointer; font-weight: 600; font-size: 15px; }
  .mobile-toc a { display: block; padding: 7px 0; font-size: 14px; }
  .mobile-toc nav { padding-top: 9px; }
  .about-content { margin: 27px auto 48px; }
}

@media (max-width: 380px) {
  .main-nav { display: none; }
  .language { margin-left: auto; }
  .data-table th, .data-table td { padding: 10px 6px; }
}

@media (max-width: 350px) {
  .month-card { padding: 11px 9px; }
  .temperature-item { flex-direction: column; align-items: flex-start; gap: 0; }
  .month-name { font-size: 14px; }
  .search-result { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .month-card, .search-field { transition: none; }
}

@media print {
  .site-header, .sidebar, .mobile-toc, .site-footer, .month-calendar, .destination-search { display: none; }
  .page-layout { display: block; }
  .container { width: 100%; }
  .article-section { break-inside: avoid; }
}
