/*NOTE: This file is intended for programmers. Aspro technical support is not advised to work with him.*/

/* Examples (uncomment to use):*/

/* Expand site width */
/* body .wrapper { max-width: 1400px !important;  } */

/* Set site background image */
/* body {  background: url(image_source) top no-repeat; }

/* Hide compare button */
/* a.compare_item { display: none !important;  }*/

/* MOBILE HEADER */

.mobileheader .logo a{
    width: 60%;
}

/* MAIN BANNER */
.banners-big__item--dark-overlay {
    position: relative;
}

.banners-big__item--dark-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
}

/* Чтобы контент был поверх затемнения */
.banners-big__item--dark-overlay .banners-big__item {
    position: relative;
    z-index: 2;
}


/* SERVISE LIST MAINPAGE */

.services-list__item {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.services-list__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: #d0d7e0;
}

.services-list__item-body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    height: 100%;
    padding: 20px 24px;
}

.services-list__item-image-wrapper {
    flex-shrink: 0;
    width: 120px;
    max-width: 120px;
    height: 120px;
    min-height: 120px;
    max-height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f6f8;
}

.services-list__item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-list__item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.services-list__item-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
}

.services-list__item-title a {
    color: #1a2b4a;
    text-decoration: none;
}

.services-list__item-title a:hover {
    color: #2c5fa1;
}

.services-list__item-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.services-list__item-price {
    font-size: 16px;
    font-weight: 600;
    color: #1a2b4a;
}

.services-list__item-link {
    color: #2c5fa1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.services-list__item-link:hover {
    text-decoration: underline;
}

.services-list__link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Адаптивность — на мобильных картинка сверху */
@media (max-width: 768px) {
    .services-list__item-body {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }
    
    .services-list__item-image-wrapper {
        width: 100%;
        height: 200px;
        border-radius: 12px;
    }
}

/* TABLE */

    /* Общие стили */
    .accreditation-wrapper {
        margin: 0;
        border-radius: 16px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    
    /* Десктопная версия — обычная таблица */
    .accreditation-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
        font-family: inherit;
    }
    
    .accreditation-table th,
    .accreditation-table td {
        padding: 14px 12px;
        vertical-align: top;
        border-bottom: 1px solid #eaeaea;
    }
    
    .accreditation-table thead tr {
        background: linear-gradient(135deg, #1a3a6e 0%, #2c5282 100%);
        color: #fff;
    }
    
    .accreditation-table thead th {
        font-weight: 600;
        font-size: 14px;
        text-align: center;
        border-bottom: none;
    }
    
    .accreditation-table thead th:first-child {
        border-top-left-radius: 16px;
    }
    
    .accreditation-table thead th:last-child {
        border-top-right-radius: 16px;
    }
    
    .accreditation-table tbody tr:last-child td:first-child {
        border-bottom-left-radius: 16px;
    }
    
    .accreditation-table tbody tr:last-child td:last-child {
        border-bottom-right-radius: 16px;
    }
    
    .accreditation-table tbody tr:nth-child(even) {
        background-color: #f8fafc;
    }
    
    .accreditation-table tbody tr:hover {
        background-color: #eef2f7;
        transition: background 0.2s ease;
    }
    
    .accreditation-table .section-header {
        background: #e8edf3;
        font-weight: 700;
        font-size: 15px;
        color: #1a3a6e;
        border-top: 1px solid #d0d7de;
        border-bottom: 1px solid #d0d7de;
    }
    
    .accreditation-table .section-header th {
        padding: 10px 12px;
    }
    
    .accreditation-table td:first-child {
        text-align: center;
        font-weight: 600;
        color: #2c5282;
        vertical-align: middle;
        width: 60px;
    }
    
    .accreditation-table td:last-child {
        text-align: center;
        color: #999;
        width: 80px;
    }
    
    /* Планшеты — горизонтальный скролл */
    @media (min-width: 769px) and (max-width: 992px) {
        .accreditation-wrapper {
            overflow-x: auto;
        }
        
        .accreditation-table {
            min-width: 700px;
            font-size: 13px;
        }
        
        .accreditation-table th,
        .accreditation-table td {
            padding: 10px 8px;
        }
    }
    
    /* Мобильная версия — карточки */
    @media (max-width: 768px) {
        .accreditation-wrapper {
            border-radius: 16px;
        }
        
        .accreditation-table,
        .accreditation-table thead,
        .accreditation-table tbody,
        .accreditation-table th,
        .accreditation-table td,
        .accreditation-table tr {
            display: block;
        }
        
        /* Скрываем шапку на мобильных */
        .accreditation-table thead {
            display: none;
        }
        
        /* Каждая строка — отдельная карточка */
        .accreditation-table tbody tr {
            display: block;
            margin-bottom: 16px;
            border: 1px solid #e0e0e0;
            border-radius: 12px;
            background: #fff;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
            overflow: hidden;
        }
        
        /* Строки-разделы на мобильных */
        .accreditation-table .section-header {
            display: block;
            margin-bottom: 16px;
            border-radius: 12px;
            text-align: center;
        }
        
        .accreditation-table .section-header th {
            display: block;
            padding: 12px;
            font-size: 16px;
            border-radius: 12px;
        }
        
        /* Ячейки как строки внутри карточки */
        .accreditation-table tbody td {
            display: flex;
            padding: 12px;
            border-bottom: 1px solid #f0f0f0;
            text-align: left !important;
        }
        
        .accreditation-table tbody td:last-child {
            border-bottom: none;
        }
        
        /* Псевдозаголовок для каждой ячейки — фиксированная ширина */
        .accreditation-table tbody td::before {
            content: attr(data-label);
            font-weight: 700;
            width: 140px;
            min-width: 140px;
            flex-shrink: 0;
            color: #1a3a6e;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        /* Специальный стиль для ячейки с номером — скрываем псевдозаголовок, делаем как бейдж */
        .accreditation-table tbody td:first-child {
            background: linear-gradient(135deg, #1a3a6e 0%, #2c5282 100%);
            font-weight: 700;
            font-size: 18px;
            color: #fff;
            text-align: center !important;
            justify-content: center;
            padding: 10px 12px;
        }
        
        .accreditation-table tbody td:first-child::before {
            display: none;
        }
        
        /* Контент ячеек */
        .accreditation-table tbody td [data-content] {
            flex: 1;
        }
        
        /* Маленькие мобильные */
        @media (max-width: 480px) {
            .accreditation-table tbody td::before {
                width: 110px;
                min-width: 110px;
                font-size: 10px;
            }
            
            .accreditation-table tbody td {
                padding: 10px;
                font-size: 12px;
            }
            
            .accreditation-table tbody td:first-child {
                font-size: 16px;
                padding: 8px 10px;
            }
        }
    }

/* ЭТАЛОНЫ */

    .standards-section {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }
    
    .standards-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .standard-card {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 16px;
        overflow: hidden;
        transition: box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
    }
    
    .standard-card:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }
    
    .standard-header {
        display: flex;
        align-items: flex-start;
        padding: 20px;
        background: #f8fafc;
        border-bottom: 1px solid #e0e0e0;
        gap: 20px;
    }
    
    .standard-image {
        flex-shrink: 0;
        width: 100px;
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        border-radius: 12px;
        padding: 10px;
    }
    
    .standard-image img {
        max-width: 100%;
        max-height: 80px;
        object-fit: contain;
    }
    
    .standard-info {
        flex: 1;
    }
    
    .standard-code {
        font-size: 14px;
        color: #1D2CF3;
        font-weight: bold;
        font-style: italic;
        margin-bottom: 8px;
    }
    
    .standard-name {
        font-size: 16px;
        color: #1D2CF3;
        font-weight: bold;
        font-style: italic;
        line-height: 1.3;
    }
    
    .standard-device {
        margin-top: 12px;
        font-size: 15px;
        color: #17D411;
        font-weight: bold;
    }
    
    .standard-device a {
        color: #17D411;
        text-decoration: underline;
    }
    
    .standard-specs {
        padding: 20px;
        background: #fff;
    }
    
    .standard-specs h4 {
        font-size: 15px;
        font-weight: bold;
        color: #000;
        margin: 0 0 10px 0;
    }
    
    .standard-specs ul {
        margin: 0;
        padding-left: 20px;
        list-style: none;
    }
    
    .standard-specs li {
        font-size: 14px;
        color: #333;
        margin-bottom: 6px;
        line-height: 1.4;
    }
    
    .standard-specs li strong {
        font-weight: 600;
        color: #000;
    }
    
    .standard-note {
        font-size: 12px;
        color: #666;
        font-style: italic;
        margin-top: 10px;
    }
    
    @media (max-width: 768px) {
        .standards-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }
        
        .standard-header {
            flex-direction: column;
            text-align: center;
        }
        
        .standard-image {
            width: 100%;
            justify-content: center;
        }
    }

/* ПРОИЗВОДИТЕЛИ */
/* Сетка для карточек */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

/* Карточка */
.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Заголовок карточки */
.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a2e;
    line-height: 1.3;
}

/* Описание */
.feature-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

/* Адаптивность */

/* Планшеты (768px - 1024px) */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .feature-title {
        font-size: 1.3rem;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .feature-card {
        padding: 22px 18px;
    }
    
    .feature-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .feature-desc {
        font-size: 0.9rem;
    }
}

/* РАЗДЕЛ - ДОКУМЕНТЫ */
.file-type__icon--doc {
  background-position: -42px 0;
}

/* БЛОК НА ГЛАВНОЙ - О КОМПАНИИ */
.hyphens-auto {
  hyphens: inherit;
}

.tizers-list__item-name{
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
}

/* БЛОК НА ГЛАВНОЙ - ЭТАПЫ */

/* Контейнер для двух колонок */
.services-list-two-columns {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

/* Общие стили для колонок */
.services-list-column {
    flex: 1; /* По умолчанию 50% каждая */
    min-width: 0; /* Для корректного переноса текста */
}

/* Левая колонка */
.services-list-column--left {
    flex: 1;
}

/* Правая колонка */
.services-list-column--right {
    flex: 1;
}

/* Стили для sidebar */
.services-list-sidebar {
    position: sticky;
    top: 20px;
    height: auto;
}

.services-list-sidebar img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.services-list-with-counter__item{
	gap: 30px;
}

.services-list-with-counter__name{
	width: auto !important;
}

@media (max-width: 1024px) {
	.services-list-with-counter__item{
		gap: 0px;
	}
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .services-list-two-columns {
        flex-direction: column;
        gap: 30px;
    }
    
    .services-list-column {
        flex: 1;
        width: 100%;
    }
    
    /* На мобильных устройствах sidebar будет сверху */
    .services-list-column--right {
        order: -1; /* Это переместит правую колонку наверх */
    }
    
    .services-list-column--left {
        order: 0;
    }
    
    .services-list-sidebar {
        position: static;
        margin-bottom: 20px;
    }
}

/* Планшеты (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-list-two-columns {
        gap: 30px;
    }

	.services-list-with-counter__item{
		gap: 0px;
	}
}