/* 15.10 (владелец: «не тяп-ляп, а по-современному, чтобы не стыдно»; «если сломает редактор в админке — усовершенствовать
   сам редактор»): оформление текста страниц /info/ — статьи «Академии», «Услуги», «Контакты». Один файл и для сайта
   (lots/templates/lots/site_page.html), и для редактора в админке (settings.CKEDITOR_CONFIGS → contentsCss): в админке
   текст выглядит так же, как на сайте. Поменяли файл — поднять ?v= в site_page.html и в settings. */
@font-face { font-family:'Inter'; font-style:normal; font-weight:400 700; font-display:swap; src:url('../fonts/inter-cyrillic.woff2') format('woff2'); unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:400 700; font-display:swap; src:url('../fonts/inter-latin.woff2') format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
.page-content, body.cke_editable {
    font-size: 17px; line-height: 1.75; color: #1f2937; overflow-wrap: anywhere;
}
body.cke_editable {
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; max-width: 760px; margin: 24px auto; padding: 0 20px;
    background: #fff;
}
.page-content > :first-child, body.cke_editable > :first-child { margin-top: 0; }
.page-content p, body.cke_editable p { margin: 0 0 16px; }
.page-content h2, body.cke_editable h2 {
    font-size: 24px; line-height: 1.3; font-weight: 700; color: #111827; letter-spacing: -0.2px;
    margin: 40px 0 12px; scroll-margin-top: 84px;
}
.page-content h3, body.cke_editable h3 { font-size: 19px; line-height: 1.35; font-weight: 650; color: #111827; margin: 28px 0 8px; }
.page-content ul, .page-content ol, body.cke_editable ul, body.cke_editable ol { padding-left: 24px; margin: 0 0 18px; }
.page-content li, body.cke_editable li { margin: 6px 0; padding-left: 2px; }
.page-content ul > li::marker, body.cke_editable ul > li::marker { color: #0a8f4e; }
.page-content ol > li::marker, body.cke_editable ol > li::marker { color: #0a8f4e; font-weight: 700; }
.page-content a, body.cke_editable a {
    color: #0a8f4e; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.page-content a:hover { color: #087a42; text-decoration-thickness: 2px; }
.page-content b, .page-content strong, body.cke_editable b, body.cke_editable strong { font-weight: 650; color: #111827; }
.page-content img, body.cke_editable img { max-width: 100%; height: auto; border-radius: 10px; }
.page-content blockquote, body.cke_editable blockquote {
    margin: 20px 0; padding: 4px 18px; border-left: 4px solid #e5e7eb; color: #374151;
}
.page-content hr, body.cke_editable hr { border: none; border-top: 1px solid #e5e7eb; margin: 28px 0; }

/* примечание: <p class="note"> (в редакторе — «Стили» → «Примечание») */
.page-content .note, body.cke_editable .note {
    background: #ecf7f1; border: 1px solid #cfe9db; border-left: 4px solid #0a8f4e; border-radius: 10px;
    padding: 14px 16px; margin: 22px 0; font-size: 15.5px; line-height: 1.6; color: #1f2937;
}
/* важное предупреждение: <p class="warn"> («Стили» → «Внимание») */
.page-content .warn, body.cke_editable .warn {
    background: #fff7ed; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 10px;
    padding: 14px 16px; margin: 22px 0; font-size: 15.5px; line-height: 1.6; color: #1f2937;
}
.page-content .updated, body.cke_editable .updated { color: #6b7280; font-size: 14px; }

/* таблицы: рамка со скруглением, шапка, полосы. На сайте таблица в обёртке .table-wrap (её ставит views.dynamic_page) —
   широкая таблица на телефоне листается вбок внутри рамки, столбцы шапки и строк совпадают */
.page-content .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0 24px; border: 1px solid #e5e7eb; border-radius: 10px; }
.page-content .table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin: 0; }
body.cke_editable table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin: 18px 0 24px; border: 1px solid #e5e7eb; }
.page-content th, .page-content td, body.cke_editable th, body.cke_editable td {
    padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #e5e7eb;
}
.page-content th, body.cke_editable th { background: #f4f7f6; font-weight: 600; color: #111827; white-space: nowrap; }
.page-content tr:last-child td { border-bottom: none; }
.page-content tbody tr:nth-child(even) td { background: #fafbfb; }

/* фото разбора лотов: <div class="photos"> с картинками — сетка */
.page-content .photos, body.cke_editable .photos {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 18px 0 22px;
}
.page-content .photos img, body.cke_editable .photos img {
    width: 100%; height: 100%; max-height: 220px; object-fit: cover; margin: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

/* список статей «Академии» (<ul class="academy-list">) — карточки */
.page-content .academy-list { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.page-content .academy-list li {
    position: relative; margin: 0; padding: 18px 18px 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    font-size: 15px; line-height: 1.55; color: #4b5563; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.page-content .academy-list li:hover { border-color: #0a8f4e; box-shadow: 0 8px 22px rgba(10, 143, 78, .10); transform: translateY(-1px); }
.page-content .academy-list li a { color: #111827; text-decoration: none; }
.page-content .academy-list li a::after { content: ''; position: absolute; inset: 0; border-radius: 12px; }
.page-content .academy-list li a b { display: block; font-size: 17px; line-height: 1.35; margin-bottom: 6px; color: #111827; }
.page-content .academy-list li:hover a b { color: #0a8f4e; }
.page-content .academy-list li br { display: none; }

@media (max-width: 640px) {
    .page-content { font-size: 16px; line-height: 1.7; }
    .page-content h2 { font-size: 21px; margin-top: 32px; }
    .page-content h3 { font-size: 17px; }
    .page-content .academy-list { grid-template-columns: 1fr; }
    .page-content .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
}
