/* Страницы «Возможности» (features.html, features-teacher.html; собирает tools/build_tour.py). Основа — about.css. */
.tour-main { background: #fffdf9; padding-bottom: 72px; }
.tour { color: #241b16; }
.tour-head { max-width: 900px; padding: 8px 0 12px; }
.tour-head h1 { margin: 6px 0 16px; font-size: clamp(30px, 5vw, 52px); line-height: 1.07; }
.tour-intro { margin: 0 0 24px; max-width: 760px; color: #4f4740; font-size: 19px; line-height: 1.55; }
.tour-tabs { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: #f1ebe0; }
.tour-tabs a { display: inline-block; padding: 11px 24px; border-radius: 999px; color: #241b16; font-size: 16px; font-weight: 700; text-decoration: none; }
.tour-tabs a[aria-selected="true"] { background: #241b16; color: #fff; }
.tour-tabs a:focus-visible, .tour-chips a:focus-visible, .tour-cta a:focus-visible, .tour-zoom:focus-visible { outline: 3px solid #d6a66c; outline-offset: 3px; }
.tour-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.tour-chips a { padding: 8px 14px; border: 1px solid #e5ded2; border-radius: 999px; background: #fff; color: #241b16; font-size: 14px; text-decoration: none; }
.tour-chips a:hover { border-color: #b89b7d; }

.tour-sec { margin: 0; padding: 72px 0 8px; border-top: 1px solid #efe8dc; scroll-margin-top: 12px; }
.tour-sec:first-child { border-top: 0; padding-top: 48px; }
.tour-kicker { margin: 0 0 10px; color: #a47e42; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tour-sec > h2 { max-width: 880px; margin: 0 0 14px; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.12; }
.tour-lead { max-width: 780px; margin: 0 0 34px; color: #4f4740; font-size: 19px; line-height: 1.55; }
.tour-sec > h3 { margin: 40px 0 10px; font-size: 22px; line-height: 1.25; }
.tour-sec p { line-height: 1.7; }
.tour-text p { margin: 0 0 14px; font-size: 17px; }
.tour-sec > p { max-width: 780px; font-size: 17px; }

.tour-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: center; margin: 0 0 40px; }
.tour-row-flip > .tour-text { order: 2; }
.tour-row-flip > .tour-shot { order: 1; }
.tour-row:has(.tour-phone) { grid-template-columns: minmax(0, 1fr) 280px; }
.tour-row-flip:has(.tour-phone) { grid-template-columns: 280px minmax(0, 1fr); }
.tour-points { margin: 18px 0; padding: 0; list-style: none; }
.tour-points li { position: relative; margin: 0 0 12px; padding-left: 26px; font-size: 16px; line-height: 1.6; }
.tour-points li::before { content: ''; position: absolute; left: 4px; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: #d6a66c; }
.tour-points strong { color: #241b16; }

.tour-shot { margin: 0 0 40px; }
.tour-row .tour-shot { margin: 0; }
.tour-zoom { display: block; overflow: hidden; border: 1px solid #e5ded2; border-radius: 14px; background: #fff; box-shadow: 0 18px 44px rgba(32, 25, 20, .12); cursor: zoom-in; }
.tour-zoom img { display: block; width: 100%; height: auto; }
.tour-phone { max-width: 280px; margin-inline: auto; }
.tour-phone .tour-zoom { border-radius: 26px; }
.tour-shot figcaption { margin: 12px 4px 0; color: #625e58; font-size: 14px; line-height: 1.5; }
.tour-missing { display: grid; place-items: center; min-height: 220px; border: 2px dashed #d9cfbf; border-radius: 14px; color: #8a8076; font-size: 15px; text-align: center; }

.tour-example { max-width: 820px; margin: 28px 0 36px; padding: 22px 26px; border-left: 5px solid #d6a66c; border-radius: 0 14px 14px 0; background: #fbf6ec; }
.tour-example-title { margin: 0 0 8px; color: #7a4f12; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tour-example p:last-child { margin-bottom: 0; }
.tour-example p { font-size: 16px; }
.tour-more { margin: 8px 0 0; font-size: 15px; }
.tour a:not(.tour-zoom):not(.tour-cta-main):not(.tour-cta-alt):not(.tour-chips a):not(.tour-tabs a) { color: #7a4f12; text-underline-offset: 3px; }
.tour-table { width: 100%; max-width: 880px; margin: 18px 0; border-collapse: collapse; font-size: 15px; }
.tour-table th, .tour-table td { padding: 10px 14px; border: 1px solid #e5ded2; text-align: left; vertical-align: top; }
.tour-table th { background: #f6f2e9; }
.ui { display: inline-block; padding: 0 7px; border-radius: 6px; background: #f1ebe0; font-weight: 650; white-space: nowrap; }
kbd { padding: 1px 6px; border: 1px solid #cfc4b2; border-radius: 5px; background: #fff; font: 600 .9em system-ui, sans-serif; }

.tour-cta { margin-top: 72px; padding: 40px; border-radius: 22px; background: #241b16; color: #fff; }
.tour-cta h2 { margin: 0 0 10px; font-size: 30px; }
.tour-cta p { max-width: 640px; margin: 0 0 20px; color: #e4dccf; line-height: 1.6; }
.tour-cta a { color: #f0d9b5; }
.tour-cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.tour-cta-main { display: inline-block; padding: 15px 28px; border-radius: 999px; background: #d6a66c; color: #241b16 !important; font-weight: 750; text-decoration: none; }
.tour-cta-alt { padding: 14px 22px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; text-decoration: none; }

.tour-lightbox { width: min(96vw, 1700px); max-height: 94vh; padding: 0; border: 0; border-radius: 14px; background: transparent; overflow: visible; }
.tour-lightbox::backdrop { background: rgba(20, 15, 11, .82); }
.tour-lightbox img { display: block; max-width: 100%; max-height: 90vh; margin: 0 auto; border-radius: 12px; background: #fff; }
.tour-lightbox p { margin: 10px 0 0; color: #f3ede2; text-align: center; font-size: 15px; }
.tour-lightbox button { position: absolute; top: -14px; right: -6px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: #241b16; font-size: 24px; cursor: pointer; }

@media (max-width: 900px) {
  .tour-row, .tour-row:has(.tour-phone), .tour-row-flip:has(.tour-phone) { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .tour-row-flip > .tour-text, .tour-row-flip > .tour-shot { order: 0; }
  .tour-sec { padding-top: 52px; }
  .tour-cta { padding: 28px 22px; }
}
@media (max-width: 560px) {
  .tour-head h1 { font-size: 30px; }
  .tour-intro, .tour-lead { font-size: 17px; }
  .tour-tabs { display: flex; }
  .tour-tabs a { flex: 1; padding: 11px 12px; text-align: center; }
  .tour-example { padding: 18px 18px; }
  .tour-table { display: block; overflow-x: auto; }
}
@media print { .tour-tabs, .tour-chips, .tour-cta { display: none; } .tour-shot { break-inside: avoid; } }
