@charset "UTF-8";

/* 
 * Main CSS - оптимизированная версия
 * Основные стили после reset.css
 */

/* ==========================================================================
   БАЗОВЫЕ СТИЛИ
   ========================================================================== */

/* Контейнер */
.wrap,
.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   ЗАГОЛОВКИ H1-H6
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    color: #043062;
    font-weight: 500;
    font-variant-caps: all-petite-caps;
    margin: 0;
    line-height: 1.2;
}

h1 {
    font-size: clamp(24px, 5vw, 30px);
    margin: 20px 0;
}

h2 {
    font-size: clamp(22px, 4.5vw, 28px);
    margin: 27px 0 20px;
}

h3 {
    font-size: clamp(20px, 4vw, 26px);
    margin: 27px 0 20px;
}

h4 {
    font-size: clamp(18px, 3.5vw, 24px);
    margin: 27px 0 20px;
}

h5 {
    font-size: 1em;
  	font-weight: 500;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

#header {
    position: relative;
    z-index: 100;
    padding: 0 0 30px 0;
}

#header .planka-top {
    padding: 10px;
    text-align: center;
    background: #ff615d;
    color: #fff;
    display: none;
}

#header .header-inner {
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header .header-inner-main-page {
    position: absolute;
    z-index: 3;
    top: -10px;
    left: 0;
    width: 100%;
    color: #666;
}

#header .header-top {
    padding-top: 32px;
    margin-bottom: 26px;
}

/* #header .btn-link a:hover {
    text-decoration: none;
    	color: #fff;
} */

Логотип
.head-logo {
    order: 2;
    flex-grow: 1;
    display: inline-flex;
}

.head-logo-inner {
    position: relative;
    display: inline-block;
    color: #333;
    text-decoration: none;
}

.head-logo-sp {
    display: inline-block;
    position: relative;
    z-index: 65;
    width: 270px;
    height: 58px;
    background: url('../images/logo.svg') no-repeat;
    background-size: contain;
    text-indent: -9999px;
    overflow: hidden;
    white-space: nowrap;
}

/* Слоган */
#header .header-slogan a {
    color: #e65100;
}

/* Телефон */
#header .header-phone {
    font-weight: 500;
    position: relative;
    text-align: right;
    line-height: 1.2;
}

#header .header-phone__main-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

/* #header .header-phone__main-phone::before {
    content: "\e80a";
    font-family: FontAwesome;
    color: #e65100;
}

#header .header-phone > svg {
    position: absolute;
    right: -10px;
    top: 50%;
    width: 7px;
    height: 4px;
}*/

#header .header-phone__link {
    text-decoration: none;
    color: #e65100;
    font-weight: 600;
}

#header .header-phone__main-phone:hover .header-phone__popup {
    display: block;
}

#header .header-phone__popup {
    position: absolute;
    z-index: 3;
    top: 20px;
    right: -10px;
    display: none;
    border: 1px solid #ccc;
    /*min-width: 198px;*/
    min-height: 30px;
    padding: 8px;
    background: #fff;
    color: #222;
    white-space: nowrap;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 2px 4px 0 #ccc;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#header .header-phone__popup-item {
    border-bottom: 1px solid #dadada;
}

#header .header-phone__popup-item:last-child {
    border-bottom: none;
}

#header .header-phone__popup-link-phone {
    color: #333;
    text-decoration: none;
}

#header .header-phone__popup-link-phone > p {
    display: block;
    font-size: 0.7em;
    margin-top: 3px;
    color: #008aa4;
}

#header .header-phone__popup-link-email {
    font-size: 0.8em;
    color: #333;
}

#header .header-phone__popup-link-email:hover {
    text-decoration: none;
}

/* Кнопки в хедере */

#header .header-btn-callback {
    text-align: right;
}

#header .header-btn-callback__link {
    font-size: 0.9em;
    border-bottom: 2px dotted;
    color: #008aa4;
}

#header .header-btn-callback__link:hover {
    border: none;
    color: #666;
}

#header .header-btn-zayvka__link {
    padding: 10px 20px;
    transition: all 0.3s ease;
}

/* Меню */
#header .menu-line {
    border-top: 1px solid #efefef;
}

#header .menu-line-main-page {
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
}

/* Форма в хедере */
#header .header-form {
    position: relative;
    width: 100%;
}

#header .header-form__inner {
    position: absolute;
    right: 30px;
    margin-top: calc(50vh - 258px);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icon-mail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}


/* ==========================================================================
   LAYOUT (Wrapper, Sidebar, Content)
   ========================================================================== */

.wrapper {
    padding: 0;
}

.wrapper-main-page {
    padding: 30px 0;
}

.wrapper-inner {
    display: flex;
    gap: 60px;
}

/* Sidebar */
#sidebar {
    width: 270px;
    min-width: 270px;
    flex-shrink: 0;
}

/* Content Box */
.content-box {
    flex: 1;
    min-width: 0; /* Для корректного обтекания */
}

.content-box p,
.content-box ul,
.content-box ol {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.content-box p {
    margin: 0 0 10px;
    text-align: justify;
}

.content-box ul,
.content-box ol {
    margin: 10px 0 20px 5%;
}

.content-box ul {
    list-style: square;
}

.content-box ol {
    list-style: decimal;
}

.content-box ul li,
.content-box ol li {
    line-height: 1.5;
    margin-bottom: 5px;
}

.content-box img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.content-box .img-fluid {
    margin: 0;
}

.content-box .left {
    float: left;
    margin: 6px 20px 12px 0;
    border: 3px solid #999;
}

.content-box .right {
    float: right;
    margin: 6px 0 12px 20px;
    border: 3px solid #999;
}

.index {
    text-align: center;
    border: none;
}

/* Текстовые стили */
.content-box b,
.content-box strong {
    font-weight: 600;
}

.content-box sup {
    position: relative;
    top: -0.5em;
    font-size: small;
}

.content-box sub {
    position: relative;
    top: 0.5em;
}

.content-box .note {
    font-size: 1.1rem;
    margin: 25px 0 10px 25px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.content-box blockquote {
    font-size: 0.85em;
    text-align: justify;
    margin: 10px 0 20px;
    padding: 0.85em 20px;
    position: relative;
    color: #606770;
    border-left: 4px solid #f2360c;
    background: #f9f9f9;
    line-height: 1.5em;
    border-radius: 0 4px 4px 0;
}

/* ==========================================================================
   ТАБЛИЦЫ
   ========================================================================== */

.content-box table {
    width: 100%;
    font-size: 0.9em;
    margin: 20px 0;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-box th,
.content-box td {
    border: 1px solid #dedede;
    padding: 0.8rem 0.4rem;
    text-align: center;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.content-box th {
    text-transform: uppercase;
    background: #5c6684;
    color: #fff;
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 15px 5px;
}

.content-box tbody tr:nth-child(odd) {
    background: #f9f9f9;
}

.content-box tbody tr:hover {
    background-color: #f1f1f1;
    transform: scale(1.01);
}

.content-box td:hover {
    background: #e65100;
    color: #fff;
    cursor: pointer;
}

.content-box table td:first-child {
    text-align: center;
    padding-left: 5px;
    font-weight: 500;
}

.content-box tr > .sample {
    padding: 10px;
    width: 120px;
    background: #fff;
    vertical-align: middle;
}

td span::before {
    margin-left: 3px;
    content: "\f158";
    font-family: FontAwesome;
    font-size: 0.9em;
    color: #8d97b5;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #ececec;
    list-style: none;
	color: #757575
}

.breadcrumb li,
.breadcrumb a {
    text-decoration: none;
    color: #e65100;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #333;
}

.breadcrumb li + li::before {
    content: "/";
    padding: 0 10px;
}

.breadcrumb li:last-child,
.breadcrumb .active {
    color: #999;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

#footer {
    position: relative;
}

#footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 6px;
    background-image: linear-gradient(to right, #6fbe2e 19%, #00bbd6 43%, #0f61a9 57%, #5a39a0 81%);
}

#footer .footer__top {
    padding: 50px 0 40px;
    background: #122b3c;
    color: #adb2b6;
}

#footer .footer__top .stl {
    padding: 0 40px;
}

#footer .footer_logo {
    width: 100%;
    display: flex;
    overflow: auto;
}

#footer .footer_logo_inner {
    margin: auto;
}

#footer .footer_logo_white {
    width: 285px;
    height: 37px;
    margin: 17px auto;
    display: block;
    background: url('../images/footer-logo.svg') no-repeat;
    background-size: contain;
}

#footer .footer_logo_white span[itemprop="name"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#footer .footer__text {
    margin-bottom: 17px;
    font-size: 0.9em;
    line-height: 1.5;
    font-weight: 300;
    letter-spacing: 0.02em;
    text-align: center;
}

#footer .footer__hr {
    width: 100%;
    height: 2px;
    margin-bottom: 32px;
    background: #969ba5;
}

#footer .footer__phone {
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 15px;
}

#footer .footer__phone a {
    color: #969ba5;
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer .footer__phone a:hover {
    color: #fff;
}

.footer__item3 {
    margin-top: 15px;
    font-size: 0.85em;
    text-align: center;
}

#footer .footer__mail {
    margin-bottom: 2px;
}

#footer .footer__mail a {
    color: #969ba5;
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer .footer__mail a:hover {
    color: #fff;
}

#footer .footer__mail a::before {
    content: "\e801";
    font-family: FontAwesome;
    font-size: 0.9em;
    margin-right: 8px;
}

#footer .footer__address {
    color: #969ba5;
}

#footer .footer__address::before {
    content: "\e802";
    font-family: FontAwesome;
    margin-right: 3px;
    font-size: 1.1em;
}

#footer .footer__menu-title {
    margin: 15px 0;
    font-size: 1.2em;
    text-transform: uppercase;
    color: #fff;
    font-weight: 600;
}

#footer .footer__menu-title::after {
    content: "";
    width: 40px;
    height: 2px;
    background: #969ba5;
    display: block;
    margin: 15px 0;
}

#footer .footer__menu a {
    display: block;
    margin-bottom: 15px;
}

#footer .footer__menu a:hover {
    color: #fff;
}

#footer .footer__bottom {
    padding: 30px 0;
    background: #191f26;
}

#footer .footer__social ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

#footer .footer__social ul li {
    margin: 0 12px;
}

#footer .footer__social a {
    color: #728089;
    font-size: 1.5em;
    transition: all 0.3s ease;
    display: inline-block;
}

#footer .footer__social a:hover {
    color: #fff;
    transform: translateY(-2px);
}

#footer .footer__copyright {
    color: #adb2b6;
    font-size: 0.8em;
    line-height: 1.3;
    text-align: left; /* Выравнивание влево как в оригинале */
}

#footer .footer__copyright a {
    color: #728089;
    transition: color 0.3s ease;
}

#footer .footer__copyright a:hover {
    color: #fff;
}

.footer__social {
    margin: 5px 0;
}

/* #messages_cookies {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 1%;
  align-items: center;
  max-width: 16%;
  border-radius: 10px;
  padding: 20px;
  z-index: 9999;
  background-color: white;
  box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.2);
*/

/* Cookie Banner Styles */
#cookie-banner {
    display: none; 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background-color: #191f26; 
    color: #fff; 
    padding: 15px 20px; 
    z-index: 9999; 
    line-height: 1.4;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); 
}

#cookie-banner > div {
    max-width: 1200px;  
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

#cookie-banner span {
    flex-grow: 1; 
    margin-right: 20px;
}

#cookie-banner a {
    color: #6dcc88; 
    text-decoration: underline;
}

#cookie-agree-button {
    background-color: #6dcc88; 
    color: #333; 
    border: none;
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}

#cookie-agree-button:hover {
    background-color: #5cb85c !important;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.form-elements {
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px;
    font-family: inherit;
    font-size: inherit;
    transition: all 0.3s ease;
}

.form-elements:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    outline: none;
}

.btn-shadow {
    background-size: 200% 100%;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 70%);
    background-repeat: no-repeat;
    background-position: -200% 0;
    animation: shine 5s ease infinite;
    box-shadow: 0 9px 40px 0 rgba(50, 50, 50, 0.3);
    transition: all 0.3s ease;
}

.btn-shadow:hover {
    box-shadow: 0 12px 45px 0 rgba(50, 50, 50, 0.4);
    transform: translateY(-2px);
}

@keyframes shine {
    0% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
    100% { background-position: 200% 0; }
}

.services-news-list {
  padding-bottom: 25px;
}

.section-main-page {
    margin-bottom: 100px;
}

.section-main-page-title {
    margin-bottom: 40px;
    text-align: center;
    font-size: 2em;
    font-weight: 600;
}

.section-link-all {
    position: sticky;
    z-index: 2;
    bottom: 5px;
    right: 0;
    background: #007bff;
    color: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.section-link-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Bitrix */
[id^="bx_incl"] {
    display: inline;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 992px) {
    .wrapper-inner {
        flex-direction: column;
        gap: 30px;
    }
    
    #sidebar {
        width: 100%;
        min-width: auto;
        order: 2;
    }
    
    .content-box {
        order: 1;
    }
    
    #header .header-slider__inner {
        min-height: 500px;
    }
    
    #header .header-slider__offer {
        max-width: 90%;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .wrap,
    .container {
        padding: 0 15px;
    }
    
    #header .header-top {
        padding-top: 20px;
        margin-bottom: 20px;
    }
    
    .head-logo-sp {
        width: 200px;
        height: 42px;
    }
    
    #header .header-slider__inner {
        min-height: 400px;
    }
    
    .wrapper {
        padding: 30px 0 0 0;
    }
    
    .content-box p {
        text-align: left;
    }
    
    .content-box table {
        font-size: 0.8em;
    }
    
    .content-box th,
    .content-box td {
        padding: 0.5rem 0.2rem;
    }
}