/* CollageOnline.Ru — стили сайта (без DLE). Классы с префиксом site-/page-/card-, чтобы не пересекаться с Bootstrap редактора. */
:root {
	--text: #1f282c;
	--link: #398dd8;
	--accent: #1e14b5;
	--btn-blue: #4491ce;
	--foot: #3f4b51;
	--bg: #f2f2f2;
	--wrap: 1120px;
}
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; padding: 0;
	font-family: "Roboto Condensed", sans-serif; font-size: 17px; line-height: 1.4; color: var(--text);
	background: var(--bg) url(img/bg-new.jpg) repeat;
}
body a { color: var(--link); text-decoration: none; }
body a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.site-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 10px; box-sizing: border-box; }
.site-head, .site-main { background: #fff; }
.site-head { position: relative; text-align: center; padding: 8px 10px; margin-top: 0; }
.site-head .site-logo { display: inline-block; text-decoration: none; color: #0f0f0e; }
.site-head .site-logo img { display: inline-block; vertical-align: middle; }
.site-logo-text { display: inline-block; font-size: 18.67px; margin-left: 8px; vertical-align: middle; color: #0f0f0e; }
.site-tg { position: absolute; right: 10px; top: 10px; background: #3b97d3; color: #fff !important; padding: 5px 14px; border-radius: 3px; font-size: 14px; }
.site-main { padding: 10px 15px 25px; border-top: 1px solid #eee; margin-bottom: 15px; overflow: hidden; }
.is-inner .site-main { min-height: 50vh; }

/* кнопки */
.btn-start {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	background: linear-gradient(135deg, #43aaf0 0%, #1f74c9 100%); color: #fff !important;
	font-size: 24px; font-weight: 700; letter-spacing: .2px; line-height: 1.1; padding: 19px 42px; border-radius: 999px;
	box-shadow: 0 6px 18px rgba(31, 116, 201, .38), inset 0 1px 0 rgba(255, 255, 255, .38);
	text-decoration: none !important; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-start .ico { width: 28px; height: 28px; flex: none; }
.btn-start::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; animation: ctaPulse 2.8s ease-out infinite; }
.btn-start:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 10px 24px rgba(31, 116, 201, .45), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-start:active { transform: translateY(0); filter: brightness(.97); }
.btn-start:focus-visible, .btn-guide:focus-visible { outline: 3px solid #ffb400; outline-offset: 3px; }
@keyframes ctaPulse { 0% { box-shadow: 0 0 0 0 rgba(67, 170, 240, .55); } 70%, 100% { box-shadow: 0 0 0 18px rgba(67, 170, 240, 0); } }
@media (prefers-reduced-motion: reduce) { .btn-start::after { animation: none; } .btn-start { transition: none; } }
.btn-guide {
	display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #1f74c9 !important; border: 2px solid #cfe3f5;
	padding: 8px 18px; border-radius: 999px; font-size: 16px; font-weight: 700; text-decoration: none !important; cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}
.btn-guide .ico { width: 18px; height: 18px; }
.btn-guide:hover { background: #f1f8fe; border-color: #43aaf0; }
.top-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 10px 20px; margin: 0 -15px; background: linear-gradient(#f2f8fd, #fff); border-bottom: 1px solid #e6eef5; }

/* примеры */
.examples { padding: 15px 0 0; }
.examples h2 { font-size: 28px; margin: 10px 0 5px; font-weight: 700; }
.examples-hint { font-size: 14px; margin: 0 0 15px; }
.examples-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.examples-grid a { display: block; }
.examples-grid img { display: block; width: 100%; height: auto; border-radius: 3px; opacity: .85; transition: opacity .2s, transform .2s; border: 0; }
.examples-grid a:hover img { opacity: 1; transform: scale(1.04); }
.often-q { text-align: right; font-size: 13px; padding: 10px 5px; }
.quick-start { font-size: 20px; margin: 4px 0; padding: 7px 2px; }
.anchor { position: relative; top: -10px; }

/* редактор на странице */
.collage-app { width: 100%; box-sizing: border-box; padding-right: 4px; /* JS редактора делает контейнер холста на 4px шире строки (рамка) */ margin: 0 0 15px; font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; color: #333; line-height: 1.42857143; }
.collage-app a { text-decoration: none; }
.collage-app .container-fluid { padding-left: 0; padding-right: 0; }
/* Bootstrap-строки редактора имеют отрицательные поля -15px — на сайте они вылезали за блок и обрезались */
.collage-app .row { margin-left: 0; margin-right: 0; }
.collage-app .row > [class*="col-"] { padding-left: 0; padding-right: 0; }
.collage-app::after { content: ""; display: table; clear: both; }

/* SEO-тексты */
.seo-text { margin-top: 20px; padding: 10px; text-align: justify; }
.seo-text h1 { font-size: 28.9px; margin: 0 0 10px; }
.seo-text h2 { font-size: 24px; margin: 20px 0 8px; }

/* внутренние страницы */
.crumbs { font-size: 14px; padding: 8px 0 12px; }
.page-title { font-size: 30px; line-height: 1.2; margin: 0 0 15px; font-weight: 700; color: var(--text); }
.lead { font-size: 18px; margin: 0 0 20px; }
.maincont { overflow: hidden; word-wrap: break-word; }
.maincont img { max-width: 100%; height: auto; }
.maincont iframe { max-width: 100%; }
.maincont p { margin: 0 0 1em; }
.card { border-bottom: 1px solid #e5e5e5; padding: 15px 0; }
.card-title { font-size: 24px; margin: 0 0 8px; }
.card-meta { font-size: 14px; color: #666; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 12px 0 0; }
.tags { font-size: 14px; color: #666; }
.related { margin-top: 25px; padding: 15px; background: #f7f7f7; border-radius: 3px; }
.related h2 { font-size: 20px; margin: 0 0 8px; }
.related ul, .related-list { margin: 0; padding-left: 20px; }
.to-editor { text-align: center; margin: 30px 0 5px; }
.to-editor .btn-start { font-size: 20px; padding: 15px 34px; }

/* подвал */
.site-footmenu { background: var(--foot); }
.site-footmenu ul { margin: 0; padding: 10px 0; list-style: none; text-align: center; }
.site-footmenu li { display: inline-block; }
.site-footmenu a { color: #fff !important; display: inline-block; padding: 6px 15px; }
.site-footer { background: #fff; padding: 15px 0; text-align: center; font-size: 14px; }

/* картинки в статьях: лайтбокс */
a.zoom { cursor: zoom-in; }

@media (max-width: 767px) {
	body { font-size: 16px; }
	.site-head { padding: 8px 5px 44px; }
	.site-tg { top: auto; bottom: 8px; right: 50%; transform: translateX(50%); }
	.site-logo-text { display: block; margin: 4px 0 0; font-size: 16px; }
	.btn-start { display: flex; width: 100%; box-sizing: border-box; padding: 17px 14px; font-size: 20px; }
	.top-actions { margin: 0 -8px; }
	.to-editor .btn-start { display: inline-flex; width: auto; }
	.site-main { padding: 8px 8px 20px; }
	.examples h2 { font-size: 26px; }
	.examples-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
	.often-q { text-align: center; }
	.quick-start { font-size: 16px; }
	.page-title { font-size: 24px; }
	.card-title { font-size: 20px; }
	.site-footmenu a { padding: 6px 8px; }
}

/* реклама (Яндекс РСЯ) */
.ad-slot { margin: 12px 0; text-align: center; overflow: hidden; }
.ad-slot.ad-test { display: flex; align-items: center; justify-content: center; border: 1px dashed #b9c3c9; background: #f7f9fa; color: #8a979e; font-size: 13px; }
.ad-top { max-height: 380px; }
.ad-bottom { max-height: 380px; }

/* всплывающие окна (simpleLightbox): «Частый вопрос», видео, увеличение картинок */
.contentInPopup { max-width: 540px; padding: 22px 24px 12px; font-size: 16px; line-height: 1.5; color: var(--text); }
.contentInPopup h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.25; }
.contentInPopup p { margin: 0 0 12px; }
.slbVideo .slbContent { background: #000; box-shadow: none; }
.slbVideo .slbContentOuter { padding: 3em 1em; width: 920px; max-width: 100%; }
.slbVideo iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; }

/* ленивая загрузка редактора: до запуска скриптов холст не раздувает страницу */
.collage-app canvas { max-width: 100%; height: auto; }
#collage-app #canvasContainer { aspect-ratio: 2048 / 1536; }
.collage-app { position: relative; }
.collage-app.is-loading::after { content: "Загрузка редактора…"; position: absolute; left: 50%; top: 40%; transform: translateX(-50%); background: rgba(0,0,0,.72); color: #fff; padding: 10px 18px; border-radius: 4px; font-size: 15px; z-index: 5; pointer-events: none; }

/* SEO-блок и заголовок главной */
.hero-title { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; text-align: center; color: var(--text); }
.hero-sub { margin: 0; font-size: 16px; color: #5b6a72; text-align: center; max-width: 640px; }
.collage-app .intro-title { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.seo-text h2 { font-size: 24px; margin: 26px 0 10px; }
.seo-text h3 { font-size: 18px; margin: 16px 0 4px; }
.seo-text p, .seo-text li { line-height: 1.55; }
.seo-text .steps, .seo-text .features { margin: 0 0 12px; padding-left: 22px; }
.seo-text .steps li, .seo-text .features li { margin: 6px 0; }
.faq p { margin: 0 0 8px; }
@media (max-width: 767px) { .hero-title { font-size: 22px; } .hero-sub { font-size: 14px; } }
/* посадочные «Коллаж из N фото» */
.landing .lead { margin-bottom: 14px; }
.landing-cta { text-align: center; margin: 4px 0 14px; }
.landing-links { display: flex; flex-wrap: wrap; gap: 8px; }
.landing-links a, .landing-links .cur { display: inline-block; padding: 6px 14px; border: 1px solid #cfe3f5; border-radius: 999px; background: #f4f9fe; font-size: 15px; }
.landing-links .cur { background: #1f74c9; border-color: #1f74c9; color: #fff; }
.landing-links a:hover { background: #e3f1fd; text-decoration: none; }
.landing-tpl h2 { font-size: 24px; margin: 22px 0 8px; }
.tpl-grid, .hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 12px 0 8px; }
.tpl-grid a, .hub-card { display: block; border: 1px solid #e3e9ee; border-radius: 6px; overflow: hidden; background: #fff; transition: box-shadow .15s, transform .15s; }
.tpl-grid a:hover, .hub-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,.12); transform: translateY(-2px); text-decoration: none; }
.tpl-grid img, .hub-card img { display: block; width: 100%; height: auto; }
.hub-card { text-align: center; color: var(--text); }
.hub-card .hub-title { display: block; font-weight: 700; font-size: 17px; padding: 8px 8px 0; }
.hub-card .hub-sub { display: block; font-size: 13px; color: #6b7a83; padding: 0 8px 10px; }
.landing-hint { margin: 6px 0; padding: 8px 12px; border-radius: 4px; background: #eaf4fd; border: 1px solid #cfe3f5; font-size: 15px; }
.landing-hint.done { background: #e8f6ec; border-color: #bfe3c8; }
/* страница результата */
.result-box { text-align: center; }
.result-img { max-width: 100%; height: auto; max-height: 80vh; border-radius: 4px; box-shadow: 0 4px 18px rgba(0,0,0,.18); background: #fff; }
.result-del { max-width: 420px; margin: 28px auto 0; font-size: 14px; }
.result-del #delToggle { color: #8a979e; }
.result-del form { margin-top: 10px; }
.result-del form[hidden] { display: none; }
.del-row { display: flex; gap: 8px; }
.del-row input { flex: 1; padding: 9px 12px; border: 1px solid #c8d3da; border-radius: 4px; font-size: 16px; text-transform: uppercase; letter-spacing: 2px; }
.del-row button { padding: 9px 18px; border: 0; border-radius: 4px; background: #d9534f; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.del-row button:hover { background: #c9302c; }
#delMsg { margin-top: 8px; min-height: 20px; color: #666; }
#delMsg.err { color: #c62828; }
.del-ok { padding: 12px 14px; border-radius: 4px; background: #e8f6ec; border: 1px solid #bfe3c8; color: #256d39; }
/* подсказка «Нажмите выше красную кнопку…» на пустом холсте: масштабируется вместе с шириной экрана (на телефоне не вылезает за редактор) */
.collage-app #dragTip { top: 6%; left: 4%; right: 4%; padding-right: 0; box-sizing: border-box; font-size: clamp(11px, 3.3vw, 36px); line-height: 1.25; overflow: hidden; word-wrap: break-word; pointer-events: none; }

.news-list { list-style: none; padding: 0; margin: 0 0 8px; }
.news-list li { margin: 6px 0; }
.news-list time { color: #7a8891; font-size: 13px; margin-left: 8px; white-space: nowrap; }
.occ-ex { max-width: 100%; height: auto; border-radius: 6px; border: 1px solid #e3e9ee; }
.tbl { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; }
.tbl th, .tbl td { border: 1px solid #e3e9ee; padding: 6px 10px; text-align: left; vertical-align: top; }
.tbl th { background: #f3f7fa; }
@media (max-width: 600px) { .tbl { display: block; overflow-x: auto; } }
