/* Usability fixes and phone layout (21.10.2026). Loaded after style.css/main.css by include/head.php. */

/* Top menu: centred as an inline block; the old left:50% / right:50% trick made the page wider than the window */
.headerlinks ul { left: auto; float: none; display: inline-block; vertical-align: top; }
.headerlinks ul li { right: auto; }
.headerlinks ul li a { text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.headerlinks ul li:hover ul li a { text-shadow: none; }

/* Readable link and heading colours on the beige background (#ff7f00 gave 1.9:1) */
.center_content a, .center_content a:active, .center_content a:hover { color: #a84300; }
.center_content h1[style*="ff7f00"], .center_content h2[style*="ff7f00"] { color: #b34700 !important; }

/* Keyboard focus */
a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid #a84300; outline-offset: 2px; }

/* Left menu: larger click targets */
.left_menu div { line-height: 16px; }
.left_menu div a { display: inline-block; padding-top: 3px; padding-bottom: 3px; }

/* "Sign up" in the cards of upcoming groups */
.zapis { clear: both; padding-top: 6px; }
.center_content a.zapis_btn { display: inline-block; padding: 6px 16px; border-radius: 4px; background: #b34700; color: #fff; font-weight: bold; text-decoration: none; }
.center_content a.zapis_btn:hover { background: #8f3900; color: #fff; }

/* "Any questions?" call-back form in the right column */
.callback label { display: block; margin: 6px 0 1px; font: normal 12px Tahoma, Verdana, sans-serif; color: #555; }
.callback input[type=text], .callback input[type=tel], .callback input[type=email], .callback textarea {
  display: block; width: 180px; box-sizing: border-box; padding: 3px 5px;
  border: 1px solid #c9a86a; background: #fff; font: 13px Tahoma, Verdana, sans-serif;
}
.callback textarea { height: 90px; }
.callback input[type=submit] { margin-top: 8px; padding: 6px 16px; border: 0; border-radius: 4px; background: #b34700; color: #fff; font: bold 13px Tahoma, Verdana, sans-serif; cursor: pointer; }
.callback input[type=submit]:hover { background: #8f3900; }

/* 404 page */
.not_found { max-width: 640px; padding: 6px 0 20px; }
.not_found h1 { margin: 6px 0 12px; font: bold 24px Tahoma, Verdana, sans-serif; color: #333; }
.not_found p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.center_content ul.nf_links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.center_content ul.nf_links li { margin: 0; }
.center_content .nf_links a { display: inline-block; padding: 8px 14px; border: 1px solid #c9a86a; border-radius: 4px; background: #fff3d6; font-size: 14px; text-decoration: none; }
.center_content .nf_links a:hover { background: #fff; }

/* Phones */
@media (max-width: 760px) {
  .all { min-width: 0; }

  .top_head, .top_head table { width: 100% !important; height: auto !important; }
  .top_head td { display: block; width: auto !important; height: auto !important; text-align: center; white-space: normal; }
  .top_head td.top2 { background: none; }
  .top_head .top_people, .headerleft, .headerright { display: none; }
  .top_head td img[height="115"] { height: 80px; }
  .our_phone { top: 0; display: inline-block; padding: 6px 0; font-size: 24px; }
  .top_contacts .slogan_text { margin: 0 !important; }
  .top_contacts br { display: none; }
  .top_icons { padding: 6px 0; }
  .top_icons a { display: inline-block; padding: 4px; }
  .top_icons br { display: none; }

  .headercontent { background: #ff8c1a; }
  .headerlinks { height: auto; }
  .headerlinks ul { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; }
  .headerlinks ul li { height: auto; }
  .headerlinks ul li a { display: block; padding: 10px 9px; }
  .headerlinks ul li ul, .headerlinks ul li:hover ul { display: none; }

  .outer { margin: 0; }
  .wrap-cl, .center { float: none; margin: 0; }
  .left, .right { float: none; left: auto; width: auto; margin: 0; padding: 10px 12px 20px; border: 0; border-top: 1px solid #dbd9d9; }

  .center_content { padding: 8px 12px 20px; font-size: 15px; line-height: 1.5; }
  .center_content p, .center_content font, .center_content li { font-size: 15px; }
  .center_content a { font-size: inherit; }
  .center_content img { max-width: 100%; box-sizing: border-box; }
  .center_content img[width] { height: auto; }
  iframe { max-width: 100%; }
  .center_content table { display: block; max-width: 100%; overflow-x: auto; }
  .center_content table.nabor_cards, .nabor_cards tbody, .nabor_cards tr, .nabor_cards td { display: block; width: auto; }
  .nabor_cards td { overflow: hidden; padding-bottom: 14px; }

  .left_menu div { padding: 4px 0 4px 2px; }
  .left_menu div a { padding-top: 8px; padding-bottom: 8px; font-size: 15px; }

  .callback input[type=text], .callback input[type=tel], .callback input[type=email], .callback textarea { width: 100%; min-height: 40px; font-size: 16px; }
  .callback input[type=submit] { width: 100%; min-height: 44px; font-size: 16px; }
  #lasttopic { width: 100%; }

  .td_leff, .td_banners { display: block; width: auto; text-align: center; }
  .bmenu { padding: 8px; line-height: 26px; }
  .bmenu br { display: none; }
}
