:root { --teal: #0e8a8a; --teal-dark: #0a6d6d; --ink: #22303a; --muted: #5c6b76; --bg: #f4f8f8; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
a { color: var(--teal); }
.header { background: #fff; border-bottom: 3px solid var(--teal); }
.header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 16px; }
.header__logo img { max-width: 260px; width: 100%; height: auto; display: block; }
.header__center img { max-width: 240px; width: 100%; height: auto; display: block; }
.header__contacts { display: flex; align-items: center; gap: 14px; text-align: right; font-size: 14px; min-width: 0; }
.header__contacts p { margin: 0 0 6px; }
.header__contacts a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.header__gerb { width: 64px; height: auto; }
.nav { background: var(--teal); }
.nav ul { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav a, .nav span { display: block; padding: 10px 14px; color: #fff; text-decoration: none; font-size: 15px; }
.nav a:hover { background: var(--teal-dark); }
.nav li > ul { display: none; position: absolute; z-index: 10; background: var(--teal-dark); min-width: 240px; flex-direction: column; }
.nav li:hover > ul { display: flex; }
.nav li > ul a { padding: 8px 14px; }
.topbtns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 10px 16px; }
.topbtns__btn { background: #eeede0; color: #444; border: 1px solid #7e7364; border-radius: 8px; padding: 5px 15px; font: inherit; font-size: 16px; line-height: 18px; text-decoration: none; cursor: pointer; }
.topbtns__btn:hover { background: #0066cc; border-color: #0066cc; color: #fff; }
.layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; padding: 24px 16px 48px; }
.content { background: #fff; padding: 24px 28px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.content h1 { margin-top: 0; color: var(--teal-dark); font-size: 26px; }
.content img { max-width: 100%; height: auto; }
.content table { border-collapse: collapse; width: 100%; }
.content td, .content th { border: 1px solid #d8e2e2; padding: 6px 10px; }
.sidebar__block { background: #fff; border-radius: 8px; padding: 16px 18px; margin-bottom: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.sidebar__block h2 { margin: 0 0 10px; font-size: 17px; color: var(--teal-dark); }
.sidebar__block ul { list-style: none; margin: 0; padding: 0; }
.sidebar__block li { margin: 2px 0; }
.sidebar__block > ul > li > ul { margin-left: 12px; font-size: 14px; }
.sidebar__block a { text-decoration: none; }
.sidebar__block a:hover { text-decoration: underline; }
.sidebar__block--phones a { font-weight: 600; }
.sidebar__img { text-align: center; margin: 0; }
.sidebar__img img { max-width: 100%; height: auto; }
.sidebar__sign { text-align: right; }
/* Царь-кнопки */
.tsar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 16px 24px; }
.tsar a, .tsar__btn { display: block; padding: 0; border: 0; background: none; cursor: pointer; }
.tsar img { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
/* Попап записи */
.popup { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.popup[hidden] { display: none; }
.popup__box { position: relative; background: #fff; border-radius: 10px; padding: 24px 28px; max-width: 460px; width: 100%; max-height: 90vh; overflow: auto; }
.popup__box h2 { margin-top: 0; color: var(--teal-dark); }
.popup__close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
/* Низ страницы */
.bottomd { text-align: center; padding-bottom: 24px; }
.bottomd__pay img { margin: 4px 10px; vertical-align: middle; }
.bottomd__menus { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin: 14px 0; text-align: left; }
.bottomd__menus ul { list-style: none; margin: 0; padding: 0; }
.bottomd__menus a { text-decoration: none; }
.bottomd__menus a:hover { text-decoration: underline; }
.bottomd__warn { font-size: 14px; color: #333399; }
.bottomd__warn-red { color: #d00; }
.bottomd__warn small { color: var(--muted); }
.footer { background: #22303a; color: #c8d4da; padding: 20px 0; font-size: 14px; }
.footer a { color: #7fd4d4; }
.footer__lic { font-size: 12px; color: #8fa3ad; }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .header__inner { justify-content: center; text-align: center; }
  .header__contacts { text-align: center; flex-direction: column; gap: 8px; }
  .header__center { display: none; }
  .tsar { grid-template-columns: 1fr; }
}
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 16px 0; }
.card { margin: 0; background: #fff; border: 1px solid #e0e8e8; border-radius: 8px; overflow: hidden; }
.card img { width: 100%; display: block; cursor: zoom-in; }
.card figcaption { padding: 10px 12px; font-size: 14px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 4px; background: #fff; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 201; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 42px; line-height: 1; padding: 10px 16px; cursor: pointer; border-radius: 8px; }
.lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,.35); }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }
.lightbox__cnt { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; }
.accs { margin: 14px 0; }
.acc { border: 1px solid #dce7e7; border-radius: 8px; margin: 8px 0; background: #fff; }
.acc summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--teal-dark); }
.acc summary:hover { color: var(--teal); }
.acc__body { padding: 0 16px 14px; }
.contact-note { background: #e8f4f4; border-left: 4px solid var(--teal); padding: 12px 16px; border-radius: 4px; }
.btn, .uk-button { display: inline-block; background: var(--teal); color: #fff !important; padding: 8px 18px; border-radius: 6px; text-decoration: none; margin: 4px 6px 4px 0; }
.btn:hover, .uk-button:hover { background: var(--teal-dark); }
.btn--wa, .uk-button-success { background: #25a244; }
.btn--wa:hover, .uk-button-success:hover { background: #1c7a35; }
/* Совместимость с UIkit-разметкой из старых статей */
.uk-grid { display: flex; flex-wrap: wrap; gap: 18px; margin: 14px 0; }
.uk-grid > [class*="uk-width"] { flex: 1 1 190px; min-width: 0; }
.uk-panel { background: var(--bg); border-radius: 8px; padding: 14px 18px; }
.uk-panel-box { border: 1px solid #dce7e7; }
/* Классы из оригинальной темы (theme.css yoo_chester/dove) */
.bluebox, .redbox { color: #fff; font-size: 26px; font-weight: 700; line-height: 1.3; margin: 20px 0; padding: 16px; text-align: center; border-radius: 8px; }
.bluebox { background: #0066cc; }
.redbox { background: #e00; }
.pattern { color: #d00; font-size: 28px; font-weight: 700; text-align: center; margin: 20px 0; }
.bordor { background: linear-gradient(135deg, #fff 0%, #eeede0 100%); border-radius: 8px; }
.uk-button-rudy { background: #c0392b !important; }
.uk-button-rudy:hover { background: #96281b !important; }
.button-default { display: inline-block; background: #eeede0; border: 1px solid #7e7364; border-radius: 8px; color: #444; padding: 5px 15px; text-decoration: none; }
.button-default:hover { background: #0066cc; border-color: #0066cc; color: #fff; }
.uk-list-line { list-style: none; padding-left: 0; }
.uk-list-line > li { border-bottom: 1px solid #e3e9e9; padding: 6px 0; }
.clear { clear: both; }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.regbanner { text-align: center; padding: 0 16px 16px; }
.regbanner img { max-width: 550px; width: 100%; height: auto; cursor: pointer; }
/* Формы */
.form { background: #fff; }
.form__field { margin: 0 0 12px; }
.form__input { width: 100%; max-width: 480px; padding: 8px 10px; border: 1px solid #c5d3d3; border-radius: 6px; font: inherit; }
.form__input:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.form__agree { font-size: 14px; color: var(--muted); max-width: 560px; }
.form__hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
