/* Доповнення до збережених стилів архіву (yoo_inspire): шапка з назвою домену замість логотипа, зручне читання,
   картки, підвал і вигляд на телефоні. Усе інше — стилі шаблону з вебархіву без змін. */

body { min-width: 0; }
.wrapper { width: 980px; max-width: 100%; }
#maininner { width: 980px; max-width: 100%; }

/* Шапка */
#header { position: relative; min-height: 120px; }
#logo { display: block; float: left; margin: 0; padding: 28px 0 0 0; text-decoration: none; }
#logo .logo-name {
	display: block;
	font-family: "Yanone Kaffeesatz Thin", "Trebuchet MS", Arial, sans-serif;
	font-size: 58px;
	line-height: 52px;
	color: #3b4a52;
}
#logo .logo-tag { display: block; margin-top: 6px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #6d7f88; }
#menu { right: 0; bottom: -30px; }
.menu-dropdown .dropdown-right { left: auto; right: -5px; }
#toolbar { text-align: right; }

/* Верхня смуга головної */
#top-a h1 {
	margin: 0 0 12px 0;
	font-size: 46px;
	line-height: 48px;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
#top-a h2 { font-size: 30px; line-height: 32px; color: #fff; margin: 14px 0 8px 0; }
#top-a .mod-box { font-size: 16px; line-height: 25px; color: #fff; }
#top-a .mod-box p { margin: 0 0 12px 0; }
#top-a .mod-fabric a { text-decoration: none; }

/* Зміст */
#content { font-size: 16px; line-height: 26px; color: #444; }
#content h1 { font-size: 50px; line-height: 52px; margin: 0 0 18px 0; color: #2f3b42; }
#content h2 { font-size: 32px; line-height: 36px; margin: 34px 0 10px 0; color: #2f3b42; }
#content h3 { font-size: 24px; line-height: 28px; margin: 22px 0 8px 0; color: #2f3b42; }
#content p { margin: 0 0 14px 0; }
#content ul, #content ol { margin: 0 0 16px 22px; padding: 0; }
#content ul { list-style: disc; }
#content ol { list-style: decimal; }
#content li { margin: 0 0 6px 0; }
#content a { color: #2a87a6; }
#content a:hover { color: #1d6a84; }
#content .vw-kicker { margin: 0 0 6px 0; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #6d7f88; }
#content .vw-lede { font-size: 19px; line-height: 29px; color: #2f3b42; }
#content .vw-faq { margin-top: 28px; padding-top: 6px; border-top: 1px solid #e1e1e1; }
#content .vw-conclusion { margin-top: 20px; padding: 14px 18px; border-left: 4px solid #62b5b7; background: #f1f6f7; }
#content figure.photo { margin: 26px 0; padding: 0; }
#content figure.photo img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,0.25); background: #e8eef0; }
#content table { display: block; max-width: 100%; overflow-x: auto; }
#content .contact-intro { margin-bottom: 22px; }

/* Картки сторінок і перелік статей на головній */
.home-text { margin-bottom: 8px; }
.home-pages, .home-articles { margin-top: 36px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card { padding: 16px 18px 14px; border: 1px solid #dedede; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
#content .card h3 { margin: 0 0 8px 0; font-size: 26px; line-height: 28px; }
#content .card h3 a { color: #2f3b42; text-decoration: none; }
#content .card h3 a:hover { color: #2a87a6; }
#content .card p { font-size: 15px; line-height: 23px; }
.section-lead { margin-bottom: 18px; }
#content .article-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px 18px; }
#content .article-list li { margin: 0; }
#content .article-list a {
	display: block;
	padding: 11px 14px;
	border: 1px solid #dedede;
	border-left: 4px solid #62b5b7;
	border-radius: 4px;
	background: #fff;
	color: #2f3b42;
	text-decoration: none;
	line-height: 22px;
}
#content .article-list a:hover { background: #f1f6f7; color: #1d6a84; }

/* Підвал */
#footer { padding: 18px 0 22px; }
#footer p { margin: 8px 15px; }
#footer ul.menu-line { margin: 0 15px 6px; }
#footer .age { display: inline-block; padding: 1px 6px; border: 1px solid #868686; border-radius: 3px; font-weight: bold; }

/* Телефон і планшет: без горизонтальної прокрутки, меню рядком, випадне меню вимкнено */
@media (max-width: 1000px) {
	#block-toolbar, #block-header, #block-top-a, #block-main { overflow-x: hidden; }
	.top-a-layer-2, .top-a-layer-3 { display: none; }
	#header { min-height: 0; padding-bottom: 6px; margin-left: 0; }
	#logo { float: none; padding: 14px 15px 0; margin: 0; }
	#menu { position: static; margin: 6px 0 0; }
	.menu-dropdown { float: none; margin-bottom: 0; display: flex; flex-wrap: wrap; }
	.menu-dropdown .level1 { float: none; }
	.menu-dropdown li.level1 { padding-bottom: 0; }
	.menu-dropdown a.level1 > span { height: auto; padding: 8px 12px; line-height: 24px; }
	.menu-dropdown .dropdown { display: none; }
	#top-a .grid-box, #maininner { width: auto; float: none; }
	#top-a .grid-box.width66, #top-a .grid-box.width33 { width: auto; float: none; }
	#top-a h1, #content h1 { font-size: 36px; line-height: 38px; }
	#content h2 { font-size: 28px; line-height: 32px; }
	.cards, #content .article-list { grid-template-columns: 1fr; }
}
