/* Стили содержимого разделов (.content) и готовых блоков c-*.
   Подключается и на сайте, и в HTML-редакторе админки. */

.content { font-family: 'Manrope', 'Segoe UI', Arial, sans-serif; font-size: 15.5px; line-height: 1.7; color: var(--ink); overflow-wrap: break-word; }
.content > :first-child { margin-top: 0; }
.content > :last-child { margin-bottom: 0; }
.content p { margin: 0 0 14px; }
.content h2 { margin: 36px 0 14px; font-family: 'Unbounded', 'Arial Black', Arial, sans-serif; font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: var(--heading); }
.content h3 { margin: 28px 0 10px; font-size: 18px; line-height: 1.35; font-weight: 800; color: var(--heading); }
.content h4 { margin: 22px 0 8px; font-size: 15px; line-height: 1.35; font-weight: 800; color: var(--heading); }
.content a { color: var(--link); text-decoration: underline; text-decoration-color: rgba(39, 61, 141, .35); text-underline-offset: 3px; }
.content a:hover { text-decoration-color: currentColor; }
.content strong, .content b { font-weight: 800; }
.content ul:not([class]), .content ol:not([class]) { margin: 0 0 14px; padding-left: 22px; }
.content ul:not([class]) { list-style: disc; }
.content ol:not([class]) { list-style: decimal; }
.content ul:not([class]) li, .content ol:not([class]) li { margin: 6px 0; padding-left: 4px; }
.content ul:not([class]) li::marker { color: var(--link); }
.content ol:not([class]) li::marker { color: var(--link); font-weight: 800; }
.content ul[class], .content ol[class] { margin: 0; padding: 0; list-style: none; }
.content img { max-width: 100%; height: auto; border-radius: 14px; }
.content figure { margin: 24px 0; }
.content figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.content hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }
.content table { width: 100%; margin: 0 0 18px; overflow: hidden; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; font-size: 14px; }
.content th, .content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.content tr:last-child td { border-bottom: 0; }
.content th { background: var(--brand-50); font-weight: 800; color: var(--heading); }
.content iframe { max-width: 100%; border: 0; }

.content blockquote, .c-quote {
  margin: 28px 0; padding: 20px 24px; border-left: 4px solid #d12936; border-radius: 14px; background: var(--accent-50);
  font-family: 'Unbounded', 'Arial Black', Arial, sans-serif; font-size: 18px; line-height: 1.45; font-weight: 600; color: var(--heading);
}
.content blockquote p:last-child { margin-bottom: 0; }

/* Фото-блок с заголовком */
.c-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  min-height: 320px; margin: 0 0 24px; padding: 36px 40px; border-radius: 20px; color: #fff;
  background-color: #14234b; background-image: var(--img, none); background-position: center; background-size: cover;
}
.c-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(39, 61, 141, .55) 0%, rgba(20, 35, 75, .92) 70%); }
.c-hero::after { content: ''; position: absolute; right: -90px; top: -90px; z-index: -1; width: 280px; height: 280px; border: 36px solid rgba(209, 41, 54, .18); border-radius: 50%; }
.c-hero__title {
  display: inline-block; margin-bottom: 14px; padding: 8px 14px; border-radius: 999px; background: #d12936; color: var(--heading);
  font-family: 'Unbounded', 'Arial Black', Arial, sans-serif; font-size: 15px; line-height: 1.2; font-weight: 700;
}
.c-hero__text { max-width: 680px; font-size: 16px; line-height: 1.6; font-weight: 600; }
.c-hero__text p { margin: 0 0 8px; }

/* Цифры */
.content .c-counters, .c-counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 30px; padding: 0; list-style: none; }
.c-counters li { margin: 0; padding: 18px 16px; border-radius: 14px; background: var(--brand-50); }
.c-counters b { display: block; margin-bottom: 6px; font-family: 'Unbounded', 'Arial Black', Arial, sans-serif; font-size: 40px; line-height: 1; font-weight: 700; color: var(--link); }
.c-counters span { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); }
.c-counters strong { font-weight: 800; color: var(--heading); }

/* Континенты (для Sambo Europe не используется) */
.c-continents { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 26px; }
.content a.c-continents__item, .c-continents__item { display: flex; flex-direction: column; justify-content: flex-end; min-height: 130px; padding: 16px; border-radius: 14px; color: #fff; text-decoration: none; background: #273d8d; }
.c-continents__item b { font-size: 40px; line-height: 1; font-weight: 800; }
.c-continents__item span { margin-top: 6px; font-size: 13px; font-weight: 800; }

/* Дисциплины */
.c-disciplines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.c-disciplines__col { padding: 18px; border-radius: 14px; background: var(--bg); }
.content .c-disciplines ul { margin: 0; padding: 0; list-style: none; }
.content .c-disciplines h4 { margin: 0 0 14px; font-size: 16px; font-weight: 800; }
.c-disciplines li { position: relative; margin: 0 0 10px; padding: 6px 0 6px 48px; font-size: 14px; font-weight: 600; }
.c-disciplines li:last-child { margin-bottom: 0; }
.c-disciplines li::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 12px;
  background: var(--brand-100) no-repeat center/20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='4' fill='none' stroke='%233c4bd8' stroke-width='2'/%3E%3Cpath d='M4 22c0-5 3.6-8 8-8s8 3 8 8' fill='none' stroke='%233c4bd8' stroke-width='2'/%3E%3C/svg%3E");
}
.c-disciplines li.f::before {
  background-color: #ffe0d6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a4 4 0 0 0-4 4v4h8V7a4 4 0 0 0-4-4z' fill='none' stroke='%238a2a15' stroke-width='2'/%3E%3Cpath d='M4 22c0-5 3.6-8 8-8s8 3 8 8' fill='none' stroke='%238a2a15' stroke-width='2'/%3E%3C/svg%3E");
}
.c-ages { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 22px; font-size: 15px; }
.c-ages b { font-family: 'Unbounded', 'Arial Black', Arial, sans-serif; font-size: 30px; font-weight: 700; color: var(--link); }

/* Список с отметками */
.c-checklist { margin: 0 0 18px; }
.c-checklist li { position: relative; margin: 0 0 10px; padding-left: 32px; }
.c-checklist li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #273d8d no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5 9.5 18 20 6' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.c-checklist--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }

/* Логотипы организаций */
.c-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 6px 0 26px; }
.c-logos li { display: flex; align-items: center; justify-content: center; min-width: 140px; height: 84px; margin: 0; padding: 12px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.c-logos img { display: block; max-width: 170px; max-height: 60px; border-radius: 0; }

/* Лента истории */
.c-timeline { position: relative; margin: 10px 0 26px; padding-left: 30px; }
.c-timeline::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--brand-100); }
.c-timeline__item { position: relative; margin: 0 0 14px; padding: 14px 18px; border-radius: 14px; background: var(--bg); }
.c-timeline__item::before { content: ''; position: absolute; left: -29px; top: 20px; width: 16px; height: 16px; border: 4px solid #d12936; border-radius: 50%; background: #14234b; }
.c-timeline__year { display: inline-block; margin-bottom: 6px; padding: 0 10px; border-radius: 999px; background: #14234b; color: #fff; font-size: 12px; line-height: 24px; font-weight: 800; }
.c-timeline__title { font-size: 15px; line-height: 1.45; font-weight: 800; color: var(--heading); }
.c-timeline__text { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* Контакты */
.c-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 26px; }
.c-contacts__item { padding: 22px 24px; border-radius: 14px; background: var(--brand-50); }
.content .c-contacts h3 { margin: 0 0 14px; font-family: 'Unbounded', 'Arial Black', Arial, sans-serif; font-size: 16px; font-weight: 700; }
.content .c-contacts p { position: relative; margin: 0 0 10px; padding-left: 30px; }
.c-contacts p::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; background: no-repeat center/18px; }
.c-contacts__addr::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22s7-7.2 7-12.5a7 7 0 0 0-14 0C5 14.8 12 22 12 22z' fill='none' stroke='%233c4bd8' stroke-width='2'/%3E%3Ccircle cx='12' cy='9.5' r='2.5' fill='%233c4bd8'/%3E%3C/svg%3E"); }
.c-contacts__phone::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.3 0 .7-.2 1z' fill='%233c4bd8'/%3E%3C/svg%3E"); }
.c-contacts__mail::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' fill='none' stroke='%233c4bd8' stroke-width='2'/%3E%3Cpath d='m3.5 6 8.5 7 8.5-7' fill='none' stroke='%233c4bd8' stroke-width='2'/%3E%3C/svg%3E"); }
.c-contacts__site::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%233c4bd8' stroke-width='2'/%3E%3Cpath d='M3 12h18M12 3c3 3.5 3 14.5 0 18M12 3c-3 3.5-3 14.5 0 18' fill='none' stroke='%233c4bd8' stroke-width='1.6'/%3E%3C/svg%3E"); }

/* Плитки-ссылки */
.c-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 26px; }
.content a.c-tile, .c-tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 170px; padding: 18px 20px; border-radius: 14px;
  color: #fff; text-decoration: none; background-color: #273d8d; background-image: var(--img, none); background-size: cover; background-position: center;
}
.c-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 35, 75, 0) 25%, rgba(20, 35, 75, .85) 100%); }
.c-tile::after { content: '→'; position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #d12936; color: var(--heading); font-weight: 800; transition: transform .2s; }
.c-tile:hover::after { transform: translateX(3px); }
.c-tile span { padding-right: 44px; font-family: 'Unbounded', 'Arial Black', Arial, sans-serif; font-size: 16px; line-height: 1.25; font-weight: 700; }
.content a.c-tile:hover { color: #fff; }

/* Загрузки */
.c-downloads { margin: 0 0 18px; }
.c-downloads li { position: relative; margin: 0 0 10px; padding: 10px 14px 10px 50px; border-radius: 12px; background: var(--bg); }
.c-downloads li::before {
  content: ''; position: absolute; left: 12px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: #273d8d no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12M6.5 9.5 12 15l5.5-5.5M4 20h16' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.c-note { margin: 0 0 20px; padding: 16px 20px; border-left: 4px solid #273d8d; border-radius: 14px; background: var(--brand-50); }

.c-video { position: relative; overflow: hidden; margin: 0 0 20px; aspect-ratio: 16 / 9; border-radius: 16px; background: #14234b; }
.c-video iframe, .c-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 640px) {
  .c-hero { min-height: 260px; padding: 26px 20px; }
  .c-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-counters b { font-size: 32px; }
  .c-continents { grid-template-columns: repeat(2, 1fr); }
  .c-disciplines, .c-contacts, .c-tiles, .c-checklist--grid { grid-template-columns: 1fr; }
  .content blockquote, .c-quote { font-size: 16px; }
  .content h2 { font-size: 19px; }
}


/* president-disciplines-fix-20261008 */
.content .c-disciplines ul li {
  display: flex; align-items: center; gap: 12px;
  min-height: 36px; margin: 0 0 10px; padding: 0;
}
.content .c-disciplines ul li:last-child { margin-bottom: 0; }
.content .c-disciplines ul li::before {
  position: static; flex: 0 0 36px; margin: 0;
}
.page-image[src$="/david-amaryan.png"] {
  max-width: 940px; width: 100%; height: auto; object-fit: contain;
}

/* compact-president-20261008 */
.president-heading { display: flex; align-items: center; gap: 28px; margin-bottom: 36px; }
.president-heading__photo { flex: 0 0 136px; width: 136px; height: 136px; border-radius: 50%; object-fit: cover; object-position: 48% 35%; }
.president-heading .page-title { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .president-heading { gap: 18px; margin-bottom: 28px; }
  .president-heading__photo { flex-basis: 88px; width: 88px; height: 88px; }
  .president-heading .page-title { font-size: clamp(22px, 6vw, 28px); }
}

/* president-photo-right-20261008 */
.president-heading__photo { order: 0; }

/* amaryan-portrait-package-20261021 */
.news-mosaic__image[src$="/david-amaryan-20261021.png"],
.card__img img[src$="/david-amaryan-20261021.png"] {
  object-position: 50% 0%;
}
.president-heading__portrait { display: block; flex: 0 0 136px; width: 136px; height: 136px; overflow: hidden; border-radius: 50%; }
.president-heading__portrait .president-heading__photo[src$="/david-amaryan-20261021.png"] { display: block; object-position: 50% 0%; transform: scale(2); transform-origin: 50% 10%; }
@media (max-width: 600px) { .president-heading__portrait { flex-basis: 88px; width: 88px; height: 88px; } }
.post__image[src$="/david-amaryan-20261021.png"] {
  max-height: 640px;
  object-fit: contain;
}
