/**
 * @copyright	Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

/* Form validation */
.invalid { border-color: #ff0000; }
label.invalid { color: #ff0000; }

/* Buttons */
#editor-xtd-buttons {
	padding: 5px;
}

.button2-left,
.button2-right,
.button2-left div,
.button2-right div {
	float: left;
}

.button2-left a,
.button2-right a,
.button2-left span,
.button2-right span {
	display: block;
	height: 22px;
	float: left;
	line-height: 22px;
	font-size: 11px;
	color: #666;
	cursor: pointer;
}

.button2-left span,
.button2-right span {
	cursor: default;
	color: #999;
}

.button2-left .page a,
.button2-right .page a,
.button2-left .page span,
.button2-right .page span {
	padding: 0 6px;
}

.page span {
	color: #000;
	font-weight: bold;
}

.button2-left a:hover,
.button2-right a:hover {
	text-decoration: none;
	color: #0B55C4;
}

.button2-left a,
.button2-left span {
	padding: 0 24px 0 6px;
}

.button2-right a,
.button2-right span {
	padding: 0 6px 0 24px;
}

.button2-left {
	background: url(../images/j_button2_left.png) no-repeat;
	float: left;
	margin-left: 5px;
}

.button2-right {
	background: url(../images/j_button2_right.png) 100% 0 no-repeat;
	float: left;
	margin-left: 5px;
}

.button2-left .image {
	background: url(../images/j_button2_image.png) 100% 0 no-repeat;
}

.button2-left .readmore,
.button2-left .article {
	background: url(../images/j_button2_readmore.png) 100% 0 no-repeat;
}

.button2-left .pagebreak {
	background: url(../images/j_button2_pagebreak.png) 100% 0 no-repeat;
}

.button2-left .blank {
	background: url(../images/j_button2_blank.png) 100% 0 no-repeat;
}

/* Tooltips */
div.tooltip {
	float: left;
	background: #ffc;
	border: 1px solid #D4D5AA;
	padding: 5px;
	max-width: 200px;
	z-index:13000;
}

div.tooltip h4 {
	padding: 0;
	margin: 0;
	font-size: 95%;
	font-weight: bold;
	margin-top: -15px;
	padding-top: 15px;
	padding-bottom: 5px;
	background: url(../images/selector-arrow.png) no-repeat;
}

div.tooltip p {
	font-size: 90%;
	margin: 0;
}

/* Caption fixes */
/* Caption fixes */
.img_caption .left {
        float: left;
        margin-right: 1em;
}

.img_caption .right {
        float: right;
        margin-left: 1em;
}

.img_caption .left p {
        clear: left;
        text-align: center;
}

.img_caption .right p {
        clear: right;
        text-align: center;
}

.img_caption  {
	text-align: center!important;
}

.img_caption.none {
	margin-left:auto;
	margin-right:auto;
}


/* Calendar */
a img.calendar {
	width: 16px;
	height: 16px;
	margin-left: 3px;
	background: url(../images/calendar.png) no-repeat;
	cursor: pointer;
	vertical-align: middle;
}

/* новая шапка */
.header-flex-container {
    display: flex;
    align-items: flex-start; 
    justify-content: flex-start; 
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    gap: 30px; 
    padding: 10px 0;
}

.header-logo img {
    display: block;
    height: auto;
}

.header-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 180px;
}

.orange-text {
    color: #ff9900;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
    text-transform: none;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.factory-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    line-height: 1.3;
}

.contact-line {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-top: 2px;
}

.contact-line a {
    color: #00a8a8; 
    text-decoration: none;
}

.contact-line a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-flex-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}


/* Основной контейнер подвала */
.footer-container {
    background: #f8f8f8;
    border-top: 4px solid #ff9900;
    padding: 20px 20px 0px;
    font-family: Tahoma, Arial, sans-serif;
    color: #333;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    color: #ff9900;
    text-transform: uppercase;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Логотип и слоган */
.footer-brand .footer-logo img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}
.footer-slogan {
    font-size: 13px;
    line-height: 1.4;
    color: #666;
}

/* Меню */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.footer-links a:hover { color: #ff9900; }

/* Телефон и почта */
.footer-phone {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    margin-bottom: 10px;
}
.footer-contacts p {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Оранжевая кнопка */
.btn-order {
    display: inline-block;
    background: #ff9900;
    color: #fff !important;
    padding: 15px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    text-align: center;
    transition: background 0.3s;
    border: none;
}
.btn-order:hover {
    background: #e68a00;
}

/* Нижняя полоса */
.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 12px;
    color: #999;
}
.legal-links a {
    color: #999;
    margin-left: 20px;
    text-decoration: none;
}
.legal-links a:hover { text-decoration: underline; }

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .footer-top { flex-direction: column; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .legal-links a { margin: 0 10px; }
}