/* Shared responsive layout for the Ukrainian and English pages. */
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body { min-width:0; }
header, main, footer { width:100%; }
.panel, .free-card { width:100%; }
.hero, .full-grid, .explain, .form-grid, .compare-fields, .compare-output, .love-story { min-width:0; }
.hero > *, .full-grid > *, .explain > *, .love-story > * { min-width:0; }
.map-shell { width:100%; }
.map-shell svg { width:100%; max-width:100%; height:auto; }
input, select, button { font-size:16px; }
input, select { min-width:0; max-width:100%; }
.languages a { min-height:44px; min-width:44px; }
.city-title, blockquote, .brand, .map-note { overflow-wrap:break-word; }
.modal { width:min(510px,calc(100% - 32px)); max-height:calc(100dvh - 32px); overscroll-behavior:contain; }
@media screen and (min-width:1024px) {
  header, .wrap, footer { max-width:1200px; }
  .wrap { padding:36px 32px 64px; }
  .hero { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:48px; }
  .full-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:28px; }
  .explain { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .love-story { grid-template-columns:minmax(0,1fr) minmax(0,1.25fr); }
}
@media screen and (min-width:768px) and (max-width:1023px) {
  header { padding:24px; }
  .wrap { padding:28px 32px 52px; }
  .hero, .full-grid { grid-template-columns:minmax(0,1fr); gap:28px; }
  .hero > .map-shell { max-width:740px; margin-inline:auto; }
  h1 { font-size:56px; }
  h2 { font-size:34px; }
  .lead { max-width:640px; }
  .city-list { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
  .explain { grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; margin-top:40px; }
  .form-grid, .compare-fields, .compare-output { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .span2 { grid-column:1/-1; }
  .love-story { grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:22px; padding:26px; }
}
@media screen and (max-width:767px) {
  header { padding:16px; flex-wrap:wrap; align-items:center; gap:12px; }
  header .header-actions { margin-left:auto; gap:8px; }
  .brand { max-width:100%; }
  .wrap { padding:20px 16px 40px; }
  .hero, .full-grid, .city-list, .explain, .form-grid, .compare-fields, .compare-output, .love-story { grid-template-columns:minmax(0,1fr); }
  .hero, .full-grid { gap:24px; }
  h1 { font-size:clamp(36px,9vw,48px); letter-spacing:-1px; }
  h2 { font-size:30px; }
  h3 { font-size:25px; }
  .lead, .free-copy { font-size:17px; }
  .hero .primary, .unlock .primary, .full-top .secondary { width:100%; }
  .span2 { grid-column:auto; }
  .panel, .free-card { padding:22px 20px; margin-top:12px; }
  .explain { margin-top:32px; gap:24px; }
  .map-shell { padding:18px 16px; }
  .map-head { flex-wrap:wrap; }
  .map-note { font-size:20px; }
  .city-title { font-size:36px; }
  .topics { gap:8px; }
  .topics button { flex:1 1 auto; min-height:48px; padding:11px 13px; }
  .full-top { gap:12px; }
  .love-story { padding:24px 20px; gap:12px; margin-top:26px; }
  .love-story blockquote { font-size:21px; }
  .unlock { padding:20px; }
  .compare { margin-top:28px; padding-top:28px; }
  .modal { padding:24px 20px; }
  .modal .price { font-size:46px; }
  footer { padding:24px 16px; }
}
@media screen and (max-width:359px) {
  header .header-actions { width:100%; justify-content:space-between; }
  .panel, .free-card { padding:20px 16px; }
  h2 { font-size:28px; }
  .city-card { padding:20px 16px; }
  .unlock { padding:18px 16px; }
}
@media screen and (orientation:landscape) and (max-height:500px) {
  .modal { margin-block:12px; max-height:calc(100dvh - 24px); }
  .modal h2 { font-size:28px; }
  .modal .price { font-size:38px; margin-top:12px; }
}

.country-gallery{margin:34px 0 0;max-width:760px}.country-gallery-heading{font:22px Georgia,serif;color:#155c4c;margin-bottom:14px}.country-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.country-photo{margin:0;min-width:0}.country-photo img{display:block;width:100%;height:140px;object-fit:cover;border-radius:12px;background:#deeee1}.country-photo figcaption{margin-top:8px;font-size:13px;color:#155c4c;overflow-wrap:break-word}.photo-credits{margin-top:12px;font-size:11px}.photo-credits a{color:inherit;text-underline-offset:3px}@media screen and (max-width:767px){.country-gallery{margin-top:28px}.country-gallery-heading{font-size:20px}.country-photos{gap:10px}.country-photo img{height:100px;border-radius:9px}}@media screen and (max-width:359px){.country-photos{gap:8px}.country-photo img{height:82px}.country-photo figcaption{font-size:12px}}@media print{.country-gallery,.photo-credits{display:none!important}}
