/* =====================================================================
   Стили сайта. Палитра и размеры подобраны по сайту-образцу.
   Цвета — в переменных ниже.
   ===================================================================== */
:root {
    /* «ПЕДАГОГИ РОССИИ»: пастельная зелёно-бежевая гамма по макету заказчика (30.11.2026) */
    --accent: #425b39;
    --accent-light: #5c7a51;
    --accent-hover: #34492d;
    --accent-search: #3a5132;
    --navy: #2d432a;
    --navy-dark: #22341f;
    --navy-light: #56704f;
    --text-soft: #6a7c63;
    --bg: #f6f5ee;
    --cyan: #ebe9df;
    --sky: #d3dbc5;
    --grey: #828282;
    --grey-light: #bdbdbd;
    --line: #e2dfd3;
    --th: #b6bfa7;
    --row: #f9f8f2;
    --green: #4f8a32;
    --red: #c0392b;
    --yellow: #e9c46a;
    --gold: #b8954f;
    --shadow: 0 4px 12px rgba(45, 67, 42, .13);
    --font: 'Roboto', sans-serif;
    --font-head: 'Montserrat', sans-serif;
    --font-serif: 'PT Serif', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 24px; color: var(--navy); background: var(--bg) url('../img/pattern.svg') repeat; background-size: 420px; }
.site { display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }
.site > .footer { margin-top: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }
p { margin: 0 0 1rem; }
b, strong { font-weight: 700; }
ul, ol { margin: 0 0 1rem; }
.container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.muted { color: var(--grey); }
.nowrap { white-space: nowrap; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.search-cat { color: var(--grey); font-size: 14px; margin-left: 8px; }
.search-cat::before { content: '— '; }

/* Текстовые страницы (оплата, политика, положение) */
.page-body { max-width: 900px; }
.page-body h3 { font-size: 18px; line-height: 26px; margin: 28px 0 10px; }
.page-body h3:first-child { margin-top: 0; }
.page-body li { margin-bottom: 4px; }
.page-body li > ul { margin: 6px 0 8px; }
.small { font-size: 14px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.pt-3 { padding-top: 16px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 40px; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.hidden { display: none !important; }
.pink, a.pink { color: var(--accent); }

/* Заголовки, как на образце */
h1, h2, .script { font-family: var(--font-serif); font-weight: 700; font-size: 34px; line-height: 42px; color: var(--accent); margin: 0 0 8px; }
h2 { font-size: 30px; line-height: 38px; }
h1 { margin-bottom: 30px; }
@media (max-width: 767px) { h1, h2, .script { font-size: 27px; line-height: 33px; } h1 { margin-bottom: 22px; } }
h3, h4, .upper { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 24px; text-transform: uppercase; color: var(--navy); margin: 0 0 15px; }
h3 { font-size: 22px; line-height: 32px; }
h4 { margin-bottom: 8px; }
h3 a, h4 a { color: var(--navy); }
.top-line { margin-bottom: 40px; }

/* ===== Шапка ===== */
.header { position: relative; }
.header-row { display: flex; align-items: stretch; }
.header-left { flex: 1 1 auto; display: flex; padding-left: 15px; min-width: 0; }
.header-right { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; padding: 0 15px 0 20px; }
.logo-img { margin: 26px 9px 0 9px; display: block; flex-shrink: 0; }
.logo-img img { height: 104px; width: auto; }
.logo-mark { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 44px; background: linear-gradient(180deg, var(--accent-light) 0%, rgba(92, 122, 81, 0) 100%), var(--accent); }
.logo { margin: 35px 0 9px; }
.logo a { font-family: var(--font-serif); font-weight: 700; font-size: 25px; line-height: 32px; color: var(--navy); }
@media (min-width: 992px) and (max-width: 1199px) { .logo a { font-size: 24px; line-height: 30px; } }
@media (min-width: 1200px) { .logo a { white-space: nowrap; } }
.logo a:hover { text-decoration: none; }
.logo-pre { display: block; font-family: var(--font-serif); font-size: 15px; line-height: 20px; letter-spacing: .02em; color: var(--navy-light); margin-bottom: 2px; }
.logo:has(.logo-pre) { margin-top: 30px; }
.logo:has(.logo-pre) a { font-size: 30px; line-height: 36px; letter-spacing: .01em; }
.logo-def { color: var(--text-soft); line-height: 22px; max-width: 530px; margin-bottom: 36px; }
.second-menu { width: 100%; text-align: right; }
.second-menu a { font-family: var(--font-head); font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--navy); margin-left: 16px; white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199px) { .second-menu a { margin-left: 12px; } }

.menu { background: var(--accent); border-radius: 25px; height: 50px; width: 100%; position: relative; z-index: 500; }
.menu > ul { display: flex; list-style: none; margin: 0; padding: 0; height: 50px; }
.menu > ul > li { flex: 1 1 auto; position: relative; }
.menu a.top { display: block; height: 100%; padding: 14px 10px 0; font-family: var(--font-head); font-size: 15px; font-weight: 600; line-height: 22px; color: #fff; text-align: center; text-transform: uppercase; border-radius: 25px; white-space: nowrap; }
.menu a.top:hover, .menu a.top.active { background: var(--accent-hover); text-decoration: none; }
.menu .caret { display: inline-block; width: 8px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); margin: 0 0 4px 8px; transition: transform .2s; }
.menu li.parent:hover .caret { transform: rotate(-45deg); margin-bottom: 1px; }
.menu ul ul { position: absolute; top: 50px; left: 0; list-style: none; margin: 0; background: #fff; padding: 14px 24px; border: 1px solid var(--accent); box-shadow: 0 4px 4px rgba(0, 0, 0, .25); border-radius: 4px; min-width: 234px; opacity: 0; pointer-events: none; transform: translateY(-5px); transition: all .2s; }
.menu ul ul a { display: block; color: var(--accent); font-size: 16px; padding: 6px 0 7px; white-space: nowrap; }
@media (max-width: 991px) { .menu ul ul a { white-space: normal; } }
.menu ul ul a:hover { text-decoration: underline; }
.menu li:hover > ul { opacity: 1; transform: none; pointer-events: all; }
.menu-search { position: absolute; top: 0; right: 0; width: 0; height: 50px; opacity: 0; overflow: hidden; transition: width .4s ease, opacity .3s ease; }
.menu-search.open { width: 100%; opacity: 1; }
/* селектор сильнее общего стиля полей формы (input[type=search], input:focus ниже по файлу) */
.menu-search input[type=search] { display: block; width: 100%; height: 50px; border: 0; border-radius: 30px; background: var(--accent-search); color: #fff; font: inherit; font-size: 18px; line-height: 50px; padding: 0 60px 0 24px; outline: none; box-shadow: none; -webkit-appearance: none; appearance: none; }
.menu-search input[type=search]:focus { border: 0; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.menu-search input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.menu-search input::placeholder { color: #fff; opacity: .6; }
.menu-search button { position: absolute; right: 8px; top: 0; height: 50px; width: 44px; background: none; border: 0; color: #fff; cursor: pointer; }
.icon-search { width: 16px; height: 16px; vertical-align: -2px; margin-left: 6px; }
.burger { display: none; position: absolute; top: 18px; right: 15px; background: none; border: 0; padding: 5px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* шесть вкладок в одну строку: на ноутбуках поменьше шрифт и отступы */
@media (min-width: 992px) and (max-width: 1199px) { .menu a.top { font-size: 13px; padding-left: 6px; padding-right: 6px; } }
@media (max-width: 991px) { .menu a.top { font-size: 14px; } }
@media (max-width: 991px) {
    .header-row { flex-wrap: wrap; }
    .header-left, .header-right { flex-basis: 100%; }
    .header-right { display: none; }
    .burger { display: block; }
    .logo-img img { height: 64px; }
    .logo-mark { width: 60px; height: 60px; font-size: 28px; }
    .logo { margin-top: 20px; padding-right: 40px; } /* не заходит под кнопку меню */
    .logo a, .logo:has(.logo-pre) a { font-size: 24px; line-height: 30px; }
    .logo-pre { font-size: 13px; line-height: 17px; }
    .logo-def { font-size: 14px; line-height: 18px; margin-bottom: 18px; padding-right: 40px; }
    .menu { display: none; height: auto; border-radius: 15px; }
    .menu > ul { flex-direction: column; height: auto; padding: 6px 0; }
    .menu a.top { padding: 10px 0; }
    .menu ul ul { position: static; opacity: 1; transform: none; pointer-events: all; border: 0; box-shadow: none; background: transparent; padding: 0 0 6px; text-align: center; min-width: 0; }
    .menu ul ul a { color: #fff; font-size: 15px; }
    .header.open .menu { display: block; }
    .header.open .header-right { display: flex; margin-bottom: 14px; }
    .header.open .second-menu { text-align: left; }
    .header.open .second-menu a { margin: 0 16px 0 0; }
}

/* ===== Кнопки ===== */
.btn-pink, .btn-pink-outline { display: inline-flex; align-items: center; justify-content: center; border-radius: 30px; font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1; text-transform: uppercase; min-height: 50px; padding: 12px 30px; border: 0; cursor: pointer; transition: all .3s; text-decoration: none !important; }
.btn-pink { background: linear-gradient(180deg, var(--accent-light) 0%, rgba(92, 122, 81, 0) 100%), var(--accent); box-shadow: 0 4px 4px rgba(0, 0, 0, .25); color: #fff !important; }
.btn-pink:hover { background: var(--accent); }
.btn-pink-outline { background: #fff; border: 1px solid var(--accent); color: var(--accent) !important; }
.btn-pink-outline:hover, .btn-pink-outline.active { background: var(--accent); color: #fff !important; }
.h40 { min-height: 40px; padding: 11px 30px; }
.btn-simple { display: inline-block; background: var(--navy); box-shadow: var(--shadow); border-radius: 4px; color: #fff !important; border: 0; font: inherit; padding: 8px 12px; height: 40px; cursor: pointer; transition: background .3s; text-decoration: none !important; }
.btn-simple:hover { background: var(--navy-dark); }
.button-link { display: inline-block; position: relative; background: #fff; box-shadow: var(--shadow); border-radius: 4px; font-family: var(--font-head); font-size: 14px; line-height: 14px; font-weight: 600; text-transform: uppercase; padding: 14px 48px 12px 30px; color: var(--navy); }
/* на телефоне кнопки-ссылки, стоящие друг под другом, одной ширины */
@media (max-width: 600px) { .center > .button-link.round { min-width: 270px; text-align: center; } }
.button-link:hover { text-decoration: none; color: #fff; background: var(--navy); }
.button-link::after { content: '›'; position: absolute; font-size: 22px; margin: -5px 0 0 15px; transition: margin .3s ease; font-weight: 400; }
.button-link:hover::after { margin-left: 18px; }
.button-link.round { text-transform: none; border: 1px solid var(--navy); border-radius: 25px; box-shadow: none; font-size: 19px; line-height: 19px; padding: 16px 52px 16px 30px; background: transparent; }
.button-link.round:hover { background: var(--navy); }
.button-link.round::after { font-size: 26px; margin: -4px 0 0 9px; }
.big-link { font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--navy); }
.big-link::after { content: ' ›'; font-size: 20px; }
.mm { margin-bottom: 65px; }
.btn-sm { min-height: 32px; padding: 7px 16px; font-size: 13px; }
.btn-green { display: inline-block; background: var(--green); color: #fff !important; border-radius: 4px; padding: 6px 14px; font-size: 14px; font-weight: 700; }
.btn-green:hover { text-decoration: none; opacity: .9; }

/* ===== Контент ===== */
.content { margin: 42px 0 56px; min-height: 40vh; }
.slider-wrap + .content { margin-top: 42px; }

/* Слайдер */
.main-slider { height: 395px; border: 10px solid rgba(255, 255, 255, .9); box-shadow: 0 4px 14px rgba(45, 67, 42, .12); border-radius: 30px; overflow: hidden; margin-top: 35px; position: relative; background: #e9e6de; }
.main-slider .swiper-wrapper { height: 100%; }
.slide { height: 375px; display: flex; align-items: center; background-size: cover; background-position: center; color: var(--navy); text-decoration: none !important; }
.main-slider.swiper-initialized { cursor: grab; } .main-slider.swiper-initialized:active { cursor: grabbing; }
/* стрелки главного слайдера: видны при наведении (на телефоне — только свайп и точки) */
.slider-arrow { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(0, 0, 0, .2); cursor: pointer; opacity: 0; transition: opacity .25s, background-color .2s; }
.slider-arrow::before { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border: solid var(--navy); border-width: 0 2px 2px 0; }
.slider-arrow.prev { left: 16px; } .slider-arrow.prev::before { transform: translate(-30%, -50%) rotate(135deg); }
.slider-arrow.next { right: 16px; } .slider-arrow.next::before { transform: translate(-70%, -50%) rotate(-45deg); }
.main-slider:hover .slider-arrow, .slider-arrow:focus-visible { opacity: 1; }
.slider-arrow:hover { background: #fff; }
.slider-arrow.swiper-button-lock, .main-slider:not(.swiper-initialized) .slider-arrow { display: none; }
.slide-title { font-family: var(--font-serif); font-weight: 700; font-size: 50px; line-height: 56px; color: var(--navy); margin-left: 63px; }
.slide-text { font-size: 16px; line-height: 22px; color: var(--navy); margin-left: 63px; max-width: 560px; }
.slide-default { position: relative; background: linear-gradient(100deg, #f2f0e9 0%, #e9e6de 55%, #e4e1d6 100%); justify-content: space-between; overflow: hidden; }
.slide-default::after { content: ''; position: absolute; right: -140px; top: -150px; width: 560px; height: 560px; border-radius: 50%; background: rgba(255, 255, 255, .38); }
.slide-trophy { position: absolute; right: 0; top: 0; bottom: 0; width: 52%; z-index: 0; }
.slide-trophy img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.slide-default:has(.slide-trophy)::after { display: none; }
.slide-body, .slide-logo { position: relative; z-index: 1; }
.slide-default .slide-title { margin-top: 6px; }
.slide-points { margin: 18px 0 0 63px; display: flex; flex-wrap: wrap; gap: 8px; }
.slide-points span { border: 1px solid rgba(45, 67, 42, .5); background: rgba(255, 255, 255, .35); border-radius: 16px; padding: 4px 16px; font-size: 14px; line-height: 20px; color: var(--navy); }
.slide-actions { margin: 24px 0 0 63px; display: flex; flex-wrap: wrap; gap: 12px; }
.slide-btn, .slide-btn:visited { display: inline-block; background: var(--accent); color: #fff; border-radius: 25px; padding: 10px 24px; font-family: var(--font-head); font-weight: 600; font-size: 15px; line-height: 20px; }
.slide-btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.slide-btn.light, .slide-btn.light:visited { background: rgba(255, 255, 255, .55); color: var(--navy); box-shadow: inset 0 0 0 1px rgba(45, 67, 42, .55); }
.slide-btn.light:hover { background: #fff; color: var(--navy); }
.slide-logo { margin-right: 70px; width: 270px; height: 270px; flex-shrink: 0; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255, 255, 255, .16); }
.slide-logo img { width: 205px; height: auto; }
/* образец диплома на слайде — слегка повёрнут, как лист на столе */
/* тень — обычная box-shadow: filter: drop-shadow на повёрнутом листе во время перелистывания у части браузеров «съедал» текст диплома */
.slide-diploma { position: relative; z-index: 1; width: 236px; margin-right: 88px; flex-shrink: 0; transform: rotate(-3deg); }
.slide-diploma .diploma-mini, .slide-diploma .diploma-sample { box-shadow: 0 10px 18px rgba(45, 67, 42, .28); }
.slide-diploma.wide { width: 330px; margin-right: 56px; } /* горизонтальный бланк */
@media (max-width: 991px) { .slide-logo, .slide-diploma { display: none; } .slide-trophy { width: 100%; opacity: .22; } }
/* точки (Swiper pagination) */
.main-slider .swiper-pagination { bottom: 14px; }
.main-slider .swiper-pagination-bullet { width: 10px; height: 10px; margin: 0 4px !important; background: var(--navy); opacity: .3; transition: opacity .2s; }
.main-slider .swiper-pagination-bullet-active { opacity: 1; width: 26px; border-radius: 5px; }
.main-slider .swiper-pagination-lock { display: none; }
@media (max-width: 767px) { .main-slider { height: auto; border-width: 6px; border-radius: 18px; } .main-slider .swiper-slide { height: auto; } .slide { min-height: 230px; padding: 22px 0 40px; } .slide-title { font-size: 28px; line-height: 34px; margin-left: 20px; margin-right: 20px; } .slide-text { margin: 0 20px; font-size: 13px; line-height: 18px; } .slide-points { display: none; } .slide-actions { margin: 16px 20px 0; gap: 8px; } .slide-btn { padding: 8px 16px; font-size: 13px; } .slide-default::after { display: none; } .slider-arrow { display: none; } .main-slider .swiper-pagination { bottom: 12px; } }

/* Голубой акцент-блок */
.accent { background: var(--cyan); border-radius: 10px; padding: 17px; margin-bottom: 64px; position: relative; }
.accent .border { border: 2px dotted #fff; border-radius: 10px; padding: 30px 43px; width: 100%; display: flex; gap: 30px; }
.accent .accent-body { flex: 0 0 66.66%; }
.accent .accent-art { flex: 1; display: flex; align-items: center; justify-content: center; }
.accent .accent-art svg { width: 210px; height: 210px; }
.accent .title { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: 30px; line-height: 38px; color: var(--accent); padding-bottom: 30px; }
@media (max-width: 767px) { .accent .title { font-size: 25px; line-height: 31px; padding-bottom: 20px; } }
.accent .sub-title { font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 26px; margin-bottom: 13px; }
.accent p { font-size: 16px; line-height: 24px; margin-bottom: 30px; }
.accent.wobg { padding: 30px; margin-bottom: 20px; }
@media (max-width: 991px) { .accent .accent-body { flex-basis: 100%; } .accent .accent-art { display: none; } .accent .border { padding: 20px; } }

/* Категории на главной: три колонки */
.list-col-3 { columns: 3; list-style: none; padding-left: 0; margin-bottom: 45px; }
.list-col-3 li { margin-bottom: 16px; break-inside: avoid; }
.list-col-3 .list-cat { font-size: 10px; line-height: 14px; color: var(--grey); }
@media (max-width: 767px) { .list-col-3 { columns: 1; } }

/* «Наши дипломы» */
.scroller { margin: 40px 0 105px; position: relative; }
.scroller::before { content: ''; position: absolute; left: 50%; width: 100vw; margin-left: -50vw; top: 72px; height: 229px; background: var(--cyan); z-index: -1; }
/* лента на Swiper; пока скрипт не загрузился — обычная горизонтальная прокрутка того же вида */
.scroller .swiper { padding: 6px 4px 16px; margin: 0 -4px; }
.scroller .swiper-slide { width: calc((100% - 90px) / 4); }
.scroller .swiper-wrapper { align-items: center; } /* горизонтальные и вертикальные бланки вместе — по центру ленты */
.scroller .swiper:not(.swiper-initialized) .swiper-wrapper { gap: 30px; overflow-x: auto; scrollbar-width: none; }
.scroller .swiper.swiper-initialized { cursor: grab; } .scroller .swiper.swiper-initialized:active { cursor: grabbing; }
.scroller-arrow { position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); cursor: pointer; }
.scroller-arrow::before { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border: solid var(--navy); border-width: 0 2px 2px 0; }
.scroller-arrow.prev { left: -20px; } .scroller-arrow.prev::before { transform: translate(-30%, -50%) rotate(135deg); }
.scroller-arrow.next { right: -20px; } .scroller-arrow.next::before { transform: translate(-70%, -50%) rotate(-45deg); }
.scroller-arrow:hover { background: var(--navy); } .scroller-arrow:hover::before { border-color: #fff; }
.scroller-arrow.swiper-button-disabled { opacity: .35; cursor: default; pointer-events: none; }
.scroller-arrow.swiper-button-lock, .scroller:not(:has(.swiper-initialized)) .scroller-arrow { display: none; }
/* Мини-диплом: бланк + текст в тех же местах, что и в PDF (1cqw = 1 % ширины карточки), шрифт чуть крупнее — чтобы читалось */
.dm-box { container-type: inline-size; }
.diploma-mini { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background-size: cover; background-position: center; background-color: #fff; text-align: center; color: #000; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); font-size: 3.2cqw; line-height: 1.25; -webkit-text-size-adjust: none; text-size-adjust: none; }
.diploma-mini .dm-head, .diploma-mini .dm-body { position: absolute; left: 6.4cqw; width: 87.2cqw; }
.diploma-mini .dm-body { display: flex; flex-direction: column; justify-content: center; }
.diploma-mini .dm-title, .diploma-mini .dm-degree { font-family: var(--font-serif); font-weight: 700; line-height: 1.1; text-transform: uppercase; }
/* размеры — в em от шрифта карточки (3,2 % ширины листа 210 мм), чтобы горизонтальный бланк не мельчил текст */
.diploma-mini .dm-title { font-size: 2.3125em; }
.diploma-mini .dm-degree { font-size: 1.6875em; margin-top: .185em; }
.diploma-mini .dm-contest { font-weight: 700; font-size: 1.625em; line-height: 1.15; margin: .19em 0 .31em; }
.diploma-mini .dm-name { font-weight: 700; font-size: 1.625em; line-height: 1.15; margin: .23em 0 .35em; }
/* шрифт как в PDF-диплome (настройка «Шрифт на дипломах») */
.diploma-mini.dm-font-times, .diploma-mini.dm-font-times .dm-title, .diploma-mini.dm-font-times .dm-degree { font-family: "Times New Roman", Tinos, "Liberation Serif", serif; }
.diploma-mini.dm-font-calibri, .diploma-mini.dm-font-calibri .dm-title, .diploma-mini.dm-font-calibri .dm-degree { font-family: Calibri, Carlito, "Segoe UI", sans-serif; }
/* Образец диплома — картинка настоящего PDF (DiplomaSamples) */
.diploma-sample { display: block; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.diploma-sample img { display: block; width: 100%; height: auto; }
a.diploma-sample { cursor: zoom-in; }
.diploma-mini .dm-sign { position: absolute; width: 11.5cqw; aspect-ratio: 340 / 346; }
.diploma-mini .dm-stamp { position: absolute; width: 18.5cqw; aspect-ratio: 1; }
/* на телефоне две карточки и стрелки под лентой (на карточках они закрывали текст дипломов) */
@media (max-width: 767px) { .scroller .swiper-slide { width: calc((100% - 15px) / 2); } .scroller .swiper:not(.swiper-initialized) .swiper-wrapper { gap: 15px; } .scroller-arrow { top: auto; bottom: -58px; margin-top: 0; } .scroller-arrow.prev { left: calc(50% - 50px); } .scroller-arrow.next { right: calc(50% - 50px); } }

/* Плитки со списком (викторины на главной) */
.tile-area { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 52px; }
.tile { background: #fff; box-shadow: var(--shadow); padding: 35px 30px 28px; }
.tile-header { font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 23px; text-transform: uppercase; margin-bottom: 24px; }
.tile-list { list-style: none; padding-left: 0; margin-bottom: 19px; }
.tile-list li { margin-bottom: 11px; }
@media (max-width: 991px) { .tile-area { grid-template-columns: 1fr; } }

/* Выставка работ */
.img-tile-area { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px 30px; margin-bottom: 50px; }
.img-tile-view { display: block; height: 180px; width: 100%; border-radius: 5px; background: var(--cyan) center / cover no-repeat; margin-bottom: 13px; }
.img-tile-title { font-weight: 600; font-size: 16px; line-height: 24px; margin-bottom: 5px; color: var(--navy); }
.author { font-weight: 700; font-size: 12px; line-height: 16px; color: var(--grey); }
.img-tile-author { margin-bottom: 4px; }
.img-tile-def { font-size: 10px; line-height: 16px; color: var(--grey); }
@media (max-width: 991px) { .img-tile-area { grid-template-columns: repeat(2, 1fr); } }

/* Отзывы */
.review-area { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 30px 0 24px; }
.review { background: #fff; box-shadow: var(--shadow); padding: 38px 33px 31px; height: 100%; border-radius: 25px; position: relative; }
.review-like { position: absolute; top: -24px; right: 14px; width: 54px; height: 54px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; }
.review-like svg { width: 28px; height: 28px; }
.review-name { font-size: 20px; margin-bottom: 17px; }
.review-text { font-size: 14px; margin-bottom: 30px; white-space: pre-line; }
.review-link { display: block; font-size: 12px; color: var(--accent); }
.review-link:hover { color: var(--accent); }
.review-date { font-size: 12px; color: var(--grey-light); margin-top: 6px; }
@media (max-width: 991px) { .review-area { grid-template-columns: 1fr; } }

/* Контакты */
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 767px) { .contact-row { grid-template-columns: 1fr; } }

/* ===== Каталог ===== */
.title-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
@media (min-width: 768px) { .title-row { flex-wrap: nowrap; gap: 30px; } .title-row .left { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; align-items: center; } .title-row .left h1 { margin-bottom: 0; } .title-row .right { flex-shrink: 0; margin-top: 6px; } }
.title-row .left { display: flex; align-items: flex-start; flex-wrap: wrap; }
.title-row .right { display: flex; gap: 8px; flex-wrap: wrap; }
.nameplate { flex-shrink: 0; display: inline-block; background: var(--yellow); height: 42px; padding: 10px 14px 10px 8px; color: #414141; font-weight: 600; position: relative; margin-left: 40px; border-top-right-radius: 8px; border-bottom-right-radius: 8px; font-size: 18px; line-height: 22px; white-space: nowrap; }
.nameplate::before { content: ''; border: 21px solid transparent; border-right: 21px solid var(--yellow); position: absolute; left: -42px; top: 0; }
.blue-border { width: 100%; border: 2px dotted var(--sky); border-radius: 10px; padding: 13px 20px 19px; background: var(--bg); }
.blue-border .form-control { margin-bottom: 10px; }
.blue-border .filters .form-control { margin-bottom: 0; }
.contest-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 35px; }
.contest-list_col { background: rgba(211, 219, 197, .38); padding: 10px; border-radius: 10px; height: 100%; }
.contest-list > div:nth-child(3n+2) .contest-list_col { background: rgba(184, 149, 79, .08); }
.contest-list_item { margin-bottom: 16px; }
@media (max-width: 991px) { .contest-list { grid-template-columns: 1fr; gap: 10px; } }

/* Конкурсы для детей: оглавление тем и темы */
.theme-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 30px; padding: 20px 25px; background: #fff; border-radius: 10px; box-shadow: var(--shadow); }
.theme-nav a { position: relative; padding-left: 16px; font-weight: 600; line-height: 22px; }
.theme-nav a::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(-45deg); }
.theme-block { margin-top: 45px; scroll-margin-top: 16px; }
.theme-block h2 { margin-bottom: 6px; }
.theme-note { margin: 0; color: var(--navy-light); }
.theme-block .contest-list { margin-bottom: 0; }
.theme-block + div { margin-top: 30px; }
@media (max-width: 991px) { .theme-nav { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .theme-nav { grid-template-columns: 1fr; padding: 16px 18px; } .theme-block { margin-top: 35px; } }

.quiz-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 30px; }
.quiz-list { margin-bottom: 35px; text-align: center; border-radius: 10px; background: rgba(211, 219, 197, .38); padding: 15px 15px 20px; height: calc(100% - 35px); }
.quiz-list h2 { margin: 10px 0 0; }
.quiz-list h2 a { color: var(--accent); }
.quiz-list_item { margin-top: 16px; text-align: left; }
.quiz-icon { width: 150px; height: 150px; margin: 0 auto; border-radius: 50%; border: 5px solid var(--accent); background: #fff; display: grid; place-items: center; overflow: hidden; }
.quiz-icon img { width: 100%; height: 100%; object-fit: cover; }
.quiz-icon svg { width: 80px; height: 80px; color: var(--accent); }
@media (max-width: 991px) { .quiz-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .quiz-grid { grid-template-columns: 1fr; } }

/* ===== Формы ===== */
.col-form-label, .field > label, .label { display: block; font-weight: 600; font-size: 13px; line-height: 24px; color: var(--navy); padding: 0; margin: 0; }
.form-control, input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
    display: block; width: 100%; height: 40px; padding: 6px 12px; font: inherit; font-size: 16px; line-height: 24px; color: #495057; background: #fff; border: 1px solid var(--grey-light); border-radius: 4px; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 86px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #8fa983; box-shadow: 0 0 0 .2rem rgba(66, 91, 57, .18); }
.field { margin-bottom: 10px; }
.hint { font-size: 13px; line-height: 18px; color: var(--grey); margin-top: 4px; }
.req { color: var(--accent); }
.is-invalid { box-shadow: inset 0 0 12px 0 var(--accent); }
.error { color: #b3261e; font-size: 13px; line-height: 18px; margin-top: 3px; }
.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
@media (max-width: 991px) { .form-cols { grid-template-columns: 1fr; gap: 16px; } }
.form-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; margin-bottom: 8px; }
.form-head h4 { margin: 0 48px 0 0; }

/* Радио и чекбоксы как в Bootstrap custom-control */
.cc { position: relative; display: inline-flex; align-items: flex-start; min-height: 24px; padding-left: 24px; margin-right: 16px; cursor: pointer; font-size: 16px; line-height: 24px; color: var(--navy); font-weight: 400; }
.cc input { position: absolute; left: 0; opacity: 0; width: 16px; height: 16px; }
.cc .mark { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border: 1px solid #adb5bd; background: #fff; }
.cc.radio .mark { border-radius: 50%; }
.cc.check .mark { border-radius: 4px; }
.cc input:checked + .mark { border-color: var(--grey-light); background: var(--bg); }
.cc.radio input:checked + .mark::after { content: ''; position: absolute; left: 3px; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cc.check input:checked + .mark::after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cc input:focus-visible + .mark { box-shadow: 0 0 0 .2rem rgba(66, 91, 57, .2); }
.cc a { color: var(--accent); }
.cc-block { display: flex; margin: 0 0 8px; }

/* Выбор бланка диплома */
.blanks-note { margin: -4px 0 12px; color: #6b7280; font-size: 14px; }
/* 6 / 4 / 3 колонки: первые 12 бланков всегда занимают целые ряды */
.diplom-change { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.diplom-change label { position: relative; display: block; cursor: pointer; border: 3px solid transparent; border-radius: 4px; padding: 2px; transition: border-color .15s; }
.diplom-change label:hover { border-color: #e5e7eb; }
.diplom-change label:has(input:checked) { border-color: var(--accent); }
.diplom-change label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.diplom-change input { position: absolute; opacity: 0; pointer-events: none; }
.diplom-change img { display: block; width: 100%; height: auto; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.diplom-change.is-collapsed label.more { display: none; }
.blanks-more { display: block; margin: 16px auto 0; padding: 9px 22px; background: #fff; color: var(--accent); border: 2px solid var(--accent); border-radius: 22px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.blanks-more:hover { background: var(--accent); color: #fff; }
@media (max-width: 991px) { .diplom-change { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .diplom-change { grid-template-columns: repeat(3, 1fr); gap: 8px; } }

/* Загрузка файла */
.custom-file { position: relative; width: 275px; height: 67px; display: block; overflow: hidden; }
.custom-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.custom-file-label { position: absolute; inset: 0; border: 2px dotted var(--accent); border-radius: 4px; font-weight: 600; font-size: 16px; color: var(--accent); text-transform: uppercase; padding: 21px 20px 19px 33px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 18px; }
.custom-file-label.changed { font-weight: 400; font-size: 14px; text-transform: none; }
.custom-file-label svg { width: 20px; height: 20px; flex-shrink: 0; }
.upload-row { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }

/* ===== Конкурс / тест ===== */
.contest-info ul { padding-left: 40px; }
.q-tail { background: #fff; box-shadow: var(--shadow); border-radius: 10px; padding: 27px 30px 32px; margin: 0 -15px 6px; }
.q-tail .title { font-family: var(--font-head); font-size: 20px; line-height: 26px; font-weight: 600; margin-bottom: 19px; color: var(--navy); }
.q-tail .title span { font-family: var(--font); font-size: 18px; color: var(--accent); }
.q-tail .cc { display: flex; margin: 0 0 10px 30px; font-weight: 700; font-size: 15px; }
.q-tail img { max-height: 260px; width: auto; border-radius: 10px; margin: 0 0 16px 30px; }
.pink-text { font-family: var(--font-head); font-size: 18px; line-height: 26px; font-weight: 600; color: var(--accent); }
.score-box { background: #fff; box-shadow: var(--shadow); border-radius: 10px; padding: 30px; text-align: center; margin-bottom: 40px; }
.score-num { font-family: var(--font-head); font-size: 44px; line-height: 50px; font-weight: 700; color: var(--accent); }
.score-place { display: inline-block; margin: 10px 0 6px; background: var(--green); color: #fff; border-radius: 4px; padding: 4px 18px; font-family: var(--font-head); font-weight: 600; font-size: 18px; }
.score-degree { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--navy); text-transform: uppercase; letter-spacing: .02em; }

/* ===== Результаты ===== */
.tabs { margin-bottom: 15px; }
.tab { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 27px; text-transform: uppercase; color: var(--navy); margin: 0 36px 15px 0; border-bottom: 3px solid transparent; }
.tab.active, .tab:hover { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }
.filters { display: grid; grid-template-columns: 1fr 1fr 1fr 150px; gap: 30px; align-items: end; }
.filters .field { margin: 0; }
@media (max-width: 991px) { .filters { grid-template-columns: 1fr 1fr; gap: 12px; } }
@media (max-width: 600px) { .filters { grid-template-columns: 1fr; } }
table.list { font-size: 14px; line-height: 24px; background: #fff; box-shadow: var(--shadow); border-radius: 10px 10px 0 0; width: 100%; color: var(--text-soft); border-collapse: collapse; }
table.list thead { background: var(--th); }
table.list th { padding: 5px 11px; color: #fff; text-align: left; font-weight: 700; }
table.list thead th:first-child { border-radius: 10px 0 0 0; }
table.list thead th:last-child { border-radius: 0 10px 0 0; }
table.list td { padding: 16px 11px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tbody tr:nth-child(even) { background: var(--row); }
table.list td b { color: var(--text-soft); }
.status { display: inline-block; font-size: 12px; line-height: 14px; color: #fff !important; background: var(--green); border-radius: 4px; padding: 3px 6px; min-width: 90px; text-align: center; }
.status.red { background: var(--red); }
.status.gray { background: var(--grey-light); }
.table-scroll { overflow-x: auto; }
@media (max-width: 767px) {
    table.list thead { display: none; }
    table.list tr { display: block; padding: 10px 11px; border-bottom: 1px solid var(--line); }
    table.list td { display: block; padding: 2px 0; border: 0; }
    table.list td[data-label]::before { content: attr(data-label) ': '; font-size: 12px; font-weight: 700; }
}

/* Пагинация как на образце */
.pagination { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 30px 0 0; gap: 0; }
.pagination a, .pagination span { display: inline-block; min-width: 27px; height: 27px; padding: 0 8px; background: var(--bg); border: 1px solid var(--grey-light); border-radius: 14px; font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 26px; text-align: center; color: var(--grey); margin-right: 10px; }
.pagination a:hover, .pagination .active span { background: var(--navy); color: #fff; border-color: var(--navy); text-decoration: none; }
.pagination .disabled span { opacity: .5; }

/* ===== Уведомления ===== */
.alert { padding: 12px 20px; border-radius: 4px; margin-bottom: 20px; border: 1px solid transparent; }
.alert-success { background: #d4edda; color: #155724; border-color: #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border-color: #ffeeba; }
.alert ul { margin: 4px 0 0; padding-left: 20px; }

/* ===== Заявка, кабинет ===== */
.white-box { background: #fff; box-shadow: var(--shadow); border-radius: 10px; padding: 27px 30px 30px; margin-bottom: 24px; }
.status-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 24px; }
.status-step { padding: 10px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); color: var(--grey); font-family: var(--font-head); font-weight: 600; font-size: 14px; text-align: center; text-transform: uppercase; }
.status-step.done { color: var(--green); }
.status-step.current { color: var(--accent); }
@media (max-width: 600px) { .status-steps { grid-template-columns: 1fr; } }
dl.details { display: grid; grid-template-columns: 200px 1fr; gap: 6px 16px; margin: 0; }
dl.details dt { color: var(--text-soft); }
dl.details dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 600px) { dl.details { grid-template-columns: 1fr; } }
.pay-box { white-space: pre-line; background: var(--cyan); border-radius: 10px; padding: 20px; }
.pay-online { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.pay-online .muted { max-width: 360px; }
@media (max-width: 575px) { .pay-online .btn-pink { width: 100%; font-size: 16px; padding-left: 16px; padding-right: 16px; } }
.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }

/* ===== Подвал ===== */
.footer { background: var(--navy); }
.footer-top { color: #fff; padding: 30px 0; }
.footer-row { display: flex; }
.footer-row > div { flex: 0 0 50%; display: flex; align-items: center; }
.footer-row > div:first-child { justify-content: flex-end; }
.footer-logo { font-family: var(--font-serif); font-weight: 700; text-align: center; font-size: 17px; line-height: 24px; padding-right: 60px; color: #fff; }
.footer-logo .logo-mark { width: 80px; height: 80px; margin: 0 auto 6px; font-size: 36px; }
.footer-logo, .footer-logo:hover { display: block; text-decoration: none; }
.footer-logo:hover { color: #fff; opacity: .85; }
.footer-logo-img { display: block; width: 120px; height: 116px; margin: 0 auto 8px; }
.footer-logo-img img { width: 100%; height: 100%; object-fit: contain; }
.footer-menu { padding-left: 36px; margin: 0; }
.footer-menu li { list-style: none; margin-bottom: 5px; }
.footer-menu a, .footer-menu a:visited { color: #fff; font-size: 14px; }
.footer-menu a:hover { color: var(--sky); text-decoration: underline; }
/* «Мы в MAX»: картинка заказчика (QR-код) со ссылкой на канал */
.footer-max { margin-left: 36px; flex-shrink: 0; color: #fff; font-size: 14px; }
.footer-max, .footer-max:visited, .footer-max:hover { color: #fff; }
.footer-max img { display: block; width: 120px; height: auto; border-radius: 6px; background: #fff; }
.footer-max:hover img { opacity: .9; }
.footer-bottom { font-size: 12px; line-height: 18px; color: var(--sky); text-align: center; padding: 21px 15px 27px; border-top: 1px solid var(--sky); }
.footer-org { white-space: pre-line; margin-bottom: 8px; }
.age-mark { display: inline-block; margin-left: 6px; padding: 0 4px; border: 1px solid currentColor; border-radius: 3px; font-weight: 700; line-height: 16px; }
@media (max-width: 767px) {
    .footer-row { flex-direction: column; }
    .footer-row > div:first-child { display: none; }
    .footer-row > div { justify-content: center; }
    .footer-menu { padding-left: 16px; }
    .footer-row > div:last-child { flex-direction: column; align-items: flex-start; }
    .footer-max { flex-basis: 100%; margin: 18px 0 0; display: flex; justify-content: center; }
}

/* ===== Материалы заказчика ===== */
/* Главная: лицензия */
.license-line { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 21px; }
.license-line svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--accent); }
.license-thumbs { display: flex; gap: 14px; justify-content: center; }
.license-thumbs a { display: block; background: #fff; padding: 6px; border-radius: 6px; box-shadow: var(--shadow); transition: transform .2s; }
.license-thumbs a:hover { transform: translateY(-3px); }
.license-thumbs img { display: block; width: 160px; height: auto; }

/* Главная: «Почему выбирают нас?» */
.why-us { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 64px; }
.why-item { background: #fff; box-shadow: var(--shadow); border-radius: 10px; padding: 24px 16px 22px; text-align: center; }
.why-icon { width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); display: grid; place-items: center; color: var(--accent); }
.why-icon svg { width: 32px; height: 32px; }
.why-text { font-family: var(--font-head); font-weight: 600; font-size: 15px; line-height: 21px; }
/* на планшете и телефоне карточки по центру: пятая не висит одна слева */
@media (max-width: 991px) { .why-us { display: flex; flex-wrap: wrap; justify-content: center; } .why-item { flex: 0 0 calc((100% - 40px) / 3); } }
@media (max-width: 600px) { .why-us { gap: 12px; } .why-item { flex-basis: calc((100% - 12px) / 2); padding: 18px 10px; } }

/* Блок правил над тестами */
.accent.wobg ol, .accent.wobg ul { margin: 0 0 20px; padding-left: 22px; font-size: 16px; line-height: 24px; }
.accent.wobg li { margin-bottom: 8px; }
.accent.wobg p { margin-bottom: 16px; }
.accent.wobg .sub-title { margin-bottom: 12px; }

/* «Оформить выписку из приказа» */
.cc.extract-box { display: inline-flex; align-items: flex-start; background: #fff; border: 2px dotted var(--accent); border-radius: 10px; padding: 12px 18px 12px 44px; line-height: 20px; max-width: 540px; }
.cc.extract-box .mark { top: 14px; left: 14px; }
.cc.extract-box .small { color: var(--text-soft); font-size: 13px; }

/* Медали в результатах (цвета как на образце) */
.place-status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.medal { display: inline-block; width: 22px; height: 22px; flex-shrink: 0; }
.medal-1 { color: #F2C94C; }
.medal-2 { color: #9aa6ae; }
.medal-3 { color: #CA9C57; }
.medal-p { color: var(--grey-light); }

/* Кнопки под списком конкурсов на главной */
.center .button-link + .button-link { margin-left: 16px; }
@media (max-width: 600px) { .center .button-link { margin: 0 0 12px !important; } .center .button-link.mm:last-child { margin-bottom: 50px !important; } .nameplate { display: none; } }

/* ----- Страницы ошибок ----- */
.error-page { text-align: center; padding: 20px 0 70px; }
.error-code { font-family: var(--font-head); font-weight: 700; font-size: 110px; line-height: 1; color: var(--navy); opacity: .12; letter-spacing: .04em; margin-bottom: -18px; }
.error-page h1 { margin-bottom: 16px; }
.error-text { max-width: 600px; margin: 0 auto 30px; font-size: 17px; line-height: 1.6; }
.error-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.error-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 14px; justify-content: center; margin-top: 50px; }
.error-sections .button-link { text-align: center; padding: 14px 30px 12px; }
.error-sections .button-link::after { position: static; display: inline-block; margin: -4px 0 -4px 10px; vertical-align: -1px; }
@media (max-width: 600px) {
    .error-code { font-size: 80px; margin-bottom: -10px; }
    .error-text { font-size: 16px; }
    .error-actions a { width: 100%; }
    .error-sections { grid-template-columns: 1fr; }
    .error-sections .button-link { padding: 14px 16px 12px; }
}

/* Кнопка во время отправки формы */
button.is-sending { opacity: .75; cursor: progress; pointer-events: none; }
.dl-link { font-weight: 600; white-space: nowrap; }

/* Текст сайта не выделяется и не копируется (заказчик, 28.11.2026); в полях форм — как обычно (js/app.js) */
[data-no-copy] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
[data-no-copy] input, [data-no-copy] textarea, [data-no-copy] select, [data-no-copy] [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
[data-no-copy] img { -webkit-user-drag: none; }

/* Рассылка: строка в личном кабинете и страница отписки */
.cabinet-newsletter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 24px; padding: 12px 16px; background: #efede4; border-radius: 6px; }
.cabinet-newsletter .h40 { min-height: 40px; padding: 8px 20px; font-size: 14px; }
.unsubscribe-box { max-width: 640px; }
.unsubscribe-box form { margin: 8px 0 0; }

/* «Если вы хотите заказать диплом, то:» на страницах экспресс-конкурсов и викторин — крупно и жирно (заказчик, 30.11.2026) */
.order-diploma, .accent p.order-diploma { margin: 14px 0 8px; font-family: var(--font-serif); font-size: 21px; line-height: 28px; font-weight: 700; text-transform: uppercase; color: var(--navy); }
