/* ============================================================
   images.old-web.com - мобильная версия
   Тот же стиль, что и мобильный old-web.com: глянцевые градиентные
   бары, скруглённые белые блоки на сером фоне, крупные тап-цели.
   Без фреймворков и без JS - только CSS, понятный браузерам
   iOS 3-4 и Android 2.x (-webkit-gradient, -webkit-border-radius).
   ============================================================ */

body {
	margin: 0;
	padding: 0;
	background: #dcdcdc;
	color: #222;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 15px;
	-webkit-text-size-adjust: none;
}

img { border: 0; }

a { color: #0E72A3; }

/* ===== Шапка ===== */

.m-header {
	background: #0E72A3;
	background: -webkit-gradient(linear, left top, left bottom, from(#3a9fd0), to(#0a5f8b));
	background: -webkit-linear-gradient(top, #3a9fd0, #0a5f8b);
	background: linear-gradient(top, #3a9fd0, #0a5f8b);
	border-bottom: 1px solid #084b6e;
	padding: 8px 10px;
	color: #fff;
}

.m-header .m-logo {
	display: block;
	color: #fff;
	font-size: 19px;
	font-weight: bold;
	text-decoration: none;
	text-shadow: 0 -1px 0 rgba(0,0,0,0.45);
}

.m-header .m-tagline {
	display: block;
	font-size: 11px;
	color: #cfe7f4;
	text-shadow: 0 -1px 0 rgba(0,0,0,0.35);
}

.m-header-bar { width: 100%; }
.m-header-bar td { vertical-align: middle; }

.m-hbtn {
	display: block;
	white-space: nowrap;
	padding: 7px 12px;
	min-height: 16px;
	color: #fff;
	font-size: 12px;
	font-weight: bold;
	text-decoration: none;
	text-shadow: 0 -1px 0 rgba(0,0,0,0.45);
	border: 1px solid #084b6e;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	background: #0b658f;
	background: -webkit-gradient(linear, left top, left bottom, from(#2e93c5), to(#075a84));
	background: -webkit-linear-gradient(top, #2e93c5, #075a84);
	background: linear-gradient(top, #2e93c5, #075a84);
}
.m-hbtn:active { background: #06557d; }
.m-header .m-tagline a { color: #fff; }

/* ===== Пятицветная полоска - общий знак сайта ===== */

.m-strip { width: 100%; border-collapse: collapse; }
.m-strip td { height: 5px; font-size: 1px; line-height: 5px; }

/* ===== Таб-бар разделов ===== */

.m-tabs {
	width: 100%;
	border-collapse: collapse;
	border-bottom: 1px solid #7a7a7a;
}
.m-tabs td { padding: 0; }
.m-tabs a {
	display: block;
	padding: 13px 2px;
	text-align: center;
	color: #fff;
	font-size: 13px;
	font-weight: bold;
	text-decoration: none;
	text-shadow: 0 -1px 0 rgba(0,0,0,0.4);
	border-right: 1px solid rgba(0,0,0,0.25);
}
.m-tabs td.last a { border-right: 0; }
.m-tabs a.t1 { background: #0E72A3; background: -webkit-linear-gradient(top, #2a92c3, #0a5f8b); background: linear-gradient(top, #2a92c3, #0a5f8b); }
.m-tabs a.t2 { background: #00A2A5; background: -webkit-linear-gradient(top, #23c0c3, #018487); background: linear-gradient(top, #23c0c3, #018487); }
.m-tabs a.t3 { background: #22980C; background: -webkit-linear-gradient(top, #45b62e, #1a7b09); background: linear-gradient(top, #45b62e, #1a7b09); }
.m-tabs a.t4 { background: #F9B900; background: -webkit-linear-gradient(top, #ffd34d, #e0a600); background: linear-gradient(top, #ffd34d, #e0a600); color: #4a3600; text-shadow: 0 1px 0 rgba(255,255,255,0.4); }
.m-tabs a:active { opacity: 0.75; }

/* ===== Секции контента ===== */

.m-page { padding: 10px 10px 20px 10px; }

.m-sect-title {
	margin: 14px 4px 6px 4px;
	font-size: 13px;
	font-weight: bold;
	color: #4a4a4a;
	text-transform: uppercase;
	text-shadow: 0 1px 0 #fff;
}
.m-sect-title.first { margin-top: 4px; }

.m-box {
	background: #fff;
	border: 1px solid #b3b3b3;
	-webkit-border-radius: 8px;
	border-radius: 8px;
	padding: 10px;
	margin-bottom: 4px;
}

/* ===== Формы ===== */

.m-label {
	display: block;
	font-size: 12px;
	font-weight: bold;
	color: #555;
	margin: 6px 0 3px 2px;
}

.m-input {
	width: 100%;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 16px;
	padding: 9px 8px;
	border: 1px solid #a8a8a8;
	-webkit-border-radius: 6px;
	border-radius: 6px;
	background: #fff;
	-webkit-appearance: none;
	color: #222;
}

.m-btn {
	display: block;
	width: 100%;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	margin-top: 10px;
	padding: 12px 10px;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: bold;
	text-align: center;
	color: #fff;
	text-shadow: 0 -1px 0 rgba(0,0,0,0.45);
	border: 1px solid #084b6e;
	-webkit-border-radius: 6px;
	border-radius: 6px;
	background: #0E72A3;
	background: -webkit-gradient(linear, left top, left bottom, from(#3a9fd0), to(#0a5f8b));
	background: -webkit-linear-gradient(top, #3a9fd0, #0a5f8b);
	background: linear-gradient(top, #3a9fd0, #0a5f8b);
	-webkit-appearance: none;
	cursor: pointer;
}
.m-btn:active { background: #0a5f8b; }

/* поиск в шапке страницы */
.search-form input[type="text"] {
	width: 100%;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 16px;
	padding: 9px 8px;
	border: 1px solid #a8a8a8;
	-webkit-border-radius: 6px;
	border-radius: 6px;
	-webkit-appearance: none;
}
.search-form input[type="submit"] {
	display: block;
	width: 100%;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	margin-top: 8px;
	padding: 11px;
	font-size: 16px;
	font-weight: bold;
	color: #fff;
	text-shadow: 0 -1px 0 rgba(0,0,0,0.45);
	border: 1px solid #084b6e;
	-webkit-border-radius: 6px;
	border-radius: 6px;
	background: #0E72A3;
	background: -webkit-linear-gradient(top, #3a9fd0, #0a5f8b);
	background: linear-gradient(top, #3a9fd0, #0a5f8b);
	-webkit-appearance: none;
}

/* ===== Списки-ссылки и категории ===== */

.m-list {
	background: #fff;
	border: 1px solid #b3b3b3;
	-webkit-border-radius: 8px;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 4px;
}
.m-list a {
	display: block;
	padding: 13px 26px 13px 12px;
	color: #222;
	font-size: 15px;
	text-decoration: none;
	border-bottom: 1px solid #dcdcdc;
}
.m-list a .m-chev { float: right; color: #9a9a9a; font-weight: bold; }
.m-list a.last, .m-list a:last-child { border-bottom: 0; }
.m-list a:active { background-color: #0E72A3; color: #fff; }

ul.category-tree {
	margin: 0;
	padding: 0;
	list-style: none;
}
ul.category-tree li { border-bottom: 1px solid #dcdcdc; }
ul.category-tree li:last-child { border-bottom: 0; }
ul.category-tree a {
	display: block;
	padding: 12px;
	color: #222;
	font-size: 15px;
	text-decoration: none;
}
ul.category-tree a:active { background-color: #0E72A3; color: #fff; }
ul.category-tree a.active { color: #0E72A3; font-weight: bold; }
ul.category-tree ul.category-tree a { padding-left: 26px; font-size: 14px; }
ul.category-tree ul.category-tree ul.category-tree a { padding-left: 40px; }

/* ===== Сетка картинок: две плитки в ряд ===== */

.image-grid { margin: 0 -1%; }
.image-tile {
	float: left;
	width: 48%;
	margin: 0 1% 8px 1%;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	padding: 8px;
	background: #fff;
	border: 1px solid #b3b3b3;
	-webkit-border-radius: 8px;
	border-radius: 8px;
	text-align: center;
}
.image-tile img { max-width: 100%; height: auto; }
.tile-title {
	display: block;
	margin-top: 6px;
	font-size: 14px;
	line-height: 1.25;
	color: #0E72A3;
	text-decoration: none;
}
.tile-meta { margin-top: 3px; font-size: 11px; color: #8a8a8a; }
mark { background: #F9EAB3; color: #000; }

/* ===== Страница одной картинки ===== */

.image-detail-full {
	background: #fff;
	border: 1px solid #b3b3b3;
	-webkit-border-radius: 8px;
	border-radius: 8px;
	padding: 8px;
	margin-bottom: 4px;
	text-align: center;
}
.image-detail-full img { max-width: 100%; height: auto; }

.image-meta-table {
	width: 100%;
	background: #fff;
	border: 1px solid #b3b3b3;
	-webkit-border-radius: 8px;
	border-radius: 8px;
	border-collapse: separate;
	margin-bottom: 4px;
}
.image-meta-table td {
	padding: 10px 12px;
	font-size: 14px;
	border-bottom: 1px solid #e6e6e6;
}
.image-meta-table td:first-child { color: #777; width: 40%; }
.image-meta-table tr:last-child td { border-bottom: 0; }

.tag-list { padding: 4px 0 0 0; }
.tag-list a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 8px 12px;
	font-size: 14px;
	color: #0E72A3;
	text-decoration: none;
	background: #fff;
	border: 1px solid #b3b3b3;
	-webkit-border-radius: 14px;
	border-radius: 14px;
}

/* ===== Фильтры ===== */

.filters { font-size: 14px; }
.filters label { display: block; margin-bottom: 8px; }
.filters input[type="text"] {
	width: 60px;
	font-size: 16px;
	padding: 7px 6px;
	border: 1px solid #a8a8a8;
	-webkit-border-radius: 6px;
	border-radius: 6px;
	-webkit-appearance: none;
}
.filters select { font-size: 15px; }
.filters input[type="submit"] {
	display: block;
	width: 100%;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	margin-top: 6px;
	padding: 11px;
	font-size: 16px;
	font-weight: bold;
	color: #fff;
	text-shadow: 0 -1px 0 rgba(0,0,0,0.45);
	border: 1px solid #084b6e;
	-webkit-border-radius: 6px;
	border-radius: 6px;
	background: #0E72A3;
	background: -webkit-linear-gradient(top, #3a9fd0, #0a5f8b);
	background: linear-gradient(top, #3a9fd0, #0a5f8b);
	-webkit-appearance: none;
}

/* ===== Прочее ===== */

.breadcrumb { margin: 4px 4px 8px 4px; font-size: 12px; color: #666; }
.results-meta { margin: 4px 4px 8px 4px; font-size: 12px; color: #666; }

.pagination {
	margin: 10px 0 0 0;
	font-size: 13px;
	color: #555;
	text-align: center;
}
.pagination a {
	display: inline-block;
	padding: 9px 14px;
	margin: 0 4px;
	border: 1px solid #a8a8a8;
	-webkit-border-radius: 6px;
	border-radius: 6px;
	background: #fff;
	background: -webkit-linear-gradient(top, #ffffff, #e4e4e4);
	background: linear-gradient(top, #ffffff, #e4e4e4);
	text-decoration: none;
}

/* ===== Подвал ===== */

.m-footer {
	padding: 16px 10px 24px 10px;
	text-align: center;
	font-size: 11px;
	color: #777;
	text-shadow: 0 1px 0 #fff;
}
.m-footer a { color: #666; }

/* ===== Баннеры web.old-web.com (места 39 и 40) =====
   Скрипт вставляет таблицу шириной 472px и стили с max-width по id -
   на телефоне ужимаем до ширины экрана. */
.m-banner { margin: 10px 10px 0 10px; text-align: center; overflow: hidden; }
.m-banner table, .m-banner td { width: auto !important; max-width: 100%; margin: 0 auto; }
.m-banner img { max-width: 100% !important; height: auto !important; }

/* ===== Единый логотип old-web.com (мобайл): тот же знак, что прозрачный GIF на
   десктопе - пять полосок в цветах радужной полосы, "Old-Web.com", подпись.
   Чистый CSS, прозрачный, живёт прямо на синей шапке; разметка:
   <a class="ow-logo"><span class="ow-logo-name">…</span><span class="ow-logo-tag">…</span></a> ===== */
.ow-logo { display: inline-block; position: relative; padding-left: 44px; text-decoration: none; line-height: 1; }
.ow-logo::before { content: ""; position: absolute; left: 0; top: 2px; width: 32px; height: 32px;
  background: url(//old-web.com/images/logo-mark.png) no-repeat 0 0; background-size: 32px 32px; }
.ow-logo-name { display: block; font: bold 22px/1 Verdana, Tahoma, Arial, sans-serif; color: #fff; letter-spacing: -0.5px; text-shadow: 0 -1px 0 rgba(0,0,0,.45); }
.ow-logo-tag { display: block; margin-top: 4px; font: 11px/1.2 Verdana, Tahoma, Arial, sans-serif; color: #cfe7f4; text-shadow: 0 -1px 0 rgba(0,0,0,.35); }

/* номера страниц на телефоне: те же кнопки, но компактнее */
.pagination a.pg-num, .pagination b.pg-now {
	display: inline-block;
	padding: 8px 11px;
	margin: 2px;
	border: 1px solid #a8a8a8;
	border-radius: 6px;
	background: #fff;
	font-weight: normal;
}
.pagination b.pg-now { background: #ffe9a8; border-color: #d8c06a; font-weight: bold; }
.pagination span.pg-dots { color: #999; padding: 0 2px; }
.pagination span.pg-total { display: block; margin-top: 6px; font-size: 12px; color: #888; }
