/* Базовые сбросы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Утилиты */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
}

.nowrap {
    white-space: nowrap;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 16px;
}

.btn--primary {
    background: #2563eb;
    color: white;
}

.btn--primary:hover {
    background: #1d4ed8;
}

.btn--outline {
    background: transparent;
    border: 2px solid #2563eb;
    color: #2563eb;
}

.btn--outline:hover {
    background: #2563eb;
    color: white;
}

.btn--small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn--full {
    width: 100%;
    text-align: center;
}

/* Шапка */
.site-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo a {
    text-decoration: none;
}

.logo__brand {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
    display: block;
    line-height: 1.2;
}

.logo__tagline {
    font-size: 12px;
    color: #666;
}

.main-nav__list {
    display: flex;
    gap: 32px;
    list-style: none;
}

.main-nav__link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav__link:hover,
.main-nav__item.active .main-nav__link {
    color: #2563eb;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-contacts__phone {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background: #333;
    border-radius: 3px;
}

/* Hero секция */
.hero {
    /*background: linear-gradient(135deg, #f0f9ff 0%, #e6f2ff 100%);*/
    padding: 80px 0;
	min-height: calc(100vh - 80px); /* Вычитаем padding (80px сверху + 80px снизу) */
	min-height: calc(100dvh - 80px); /* современный подход с динамической высотой */
	display: flex;
	align-items: center;
	
	--bg_alone: #E5E5FF;
    --bg_animate_color_first: #E5E5FF;
    --bg_animate_color_second: #D8D8FF;
	
	background-color: var(--bg_alone, #3c5898);   
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
	
	overflow: hidden;
	position: relative;
}

.hero .container {
	width: 100%;
	z-index: 1;
}

.hero__content {
    max-width: 600px;
}

.hero__title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero__title-accent {
    color: #2563eb;
}

.hero__subtitle {
    font-size: 20px;
    color: #4b5563;
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    gap: 16px;
}

@keyframes slide_detail_preview {
    0% {
        -webkit-transform:translateX(-25%);
        transform:translateX(-25%)
    }
    to {
        -webkit-transform:translateX(25%);
        transform:translateX(25%)
    }
}

.hero .public-detail__preview-animation {
    animation: slide_detail_preview 12s 
ease-in-out infinite alternate;
    background-image: linear-gradient(-60deg, var(--bg_animate_color_first) 50%, var(--bg_animate_color_second) 0);
    height: 100%;
    left: -50%;
    opacity: .3;
    position: absolute;
    right: -50%;
    
}

.hero .public-detail__preview-animation_second, .hero .public-detail__preview-animation_third {
    animation-duration: 16s;
}

/* Заголовки секций */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header__title {
    font-size: 36px;
    margin-bottom: 12px;
}

.section-header__subtitle {
    font-size: 18px;
    color: #666;
}

.section-header__link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 48px;
}

/* Сетка продуктов */
.product-highlight {
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.product-card--featured {
    border: 2px solid #2563eb;
    transform: scale(1.05);
}

.product-card__icon {
    width: 48px;
    height: 48px;
    background: #e6f2ff;
    border-radius: 12px;
    margin-bottom: 16px;
	
	display: flex;          /* Включаем flexbox */
    justify-content: center; /* Выравниваем по горизонтали (по центру) */
    align-items: center;     /* Выравниваем по вертикали (по центру) */

}

.product-card__title {
    font-size: 20px;
    margin-bottom: 12px;
}

.product-card__description {
    color: #666;
    margin-bottom: 16px;
}

.product-card__features {
    list-style: none;
    margin-bottom: 20px;
    color: #4b5563;
    font-size: 14px;
}

.product-card__features li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.product-card__features li::before {
    content: "•";
    color: #2563eb;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.product-card__footer {
    margin-top: auto;
}

.product-card__link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

/* Карточки подразделений */
.divisions {
    padding: 80px 0;
    background: #f9fafb;
}

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.division-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.division-card__header {
    padding: 24px;
    color: white;
}

.division-card--codelab .division-card__header {
    background: #2563eb;
}

.division-card--techspot .division-card__header {
    background: #ea580c;
}

.division-card--logipoint .division-card__header {
    background: #16a34a;
}

.division-card__title {
    font-size: 28px;
    margin-bottom: 4px;
}

.division-card__badge {
    font-size: 14px;
    opacity: 0.9;
}

.division-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.division-card__list {
    list-style: none;
    margin-bottom: 24px;
    flex: 1;
}

.division-card__list li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.division-card__list li:last-child {
    border-bottom: none;
}

.division-card__list strong {
    color: #2563eb;
}

.division-card__action {
    margin-top: auto;
}

.division-card__action .btn {
    width: 100%;
}

/* Блок с системными блоками */
.products-showcase {
    padding: 80px 0;
}

.showcase-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.showcase-content__title {
    font-size: 36px;
    margin-bottom: 20px;
}

.showcase-content__description {
    font-size: 18px;
    color: #4b5563;
    margin-bottom: 24px;
}

.showcase-content__list {
    list-style: none;
    margin-bottom: 32px;
}

.showcase-content__list li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
}

.showcase-content__list li::before {
    content: "✓";
    color: #16a34a;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.showcase-image__placeholder {
    background: #e5e7eb;
    height: 300px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.showcase-image__placeholder img {
    width: 100%;
    height: 100%; /* Растягиваем на всю высоту родителя */
    object-fit: cover; /* Изображение покроет всю площадь, сохраняя пропорции */
    display: block; /* Убираем возможный отступ снизу у inline-элементов */
}

/* Проекты */
.projects {
    padding: 80px 0;
    background: #f9fafb;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-card__image {
    height: 200px;
    background: #e5e7eb;
}

.project-card__content {
    padding: 20px;
}

.project-card__tag {
    display: inline-block;
    padding: 4px 12px;
    background: #e6f2ff;
    color: #2563eb;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.project-card__title {
    font-size: 18px;
    margin-bottom: 8px;
}

.project-card__description {
    color: #666;
    font-size: 14px;
}

/* Контакты */
.contacts {
    padding: 80px 0;
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contacts-info__title {
    font-size: 36px;
    margin-bottom: 16px;
}

.contacts-info__text {
    font-size: 18px;
    color: #4b5563;
    margin-bottom: 32px;
}

.contacts-list {
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.contact-item__label {
    width: 150px;
    color: #666;
}

.contact-item__value {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
}

.contact-item__value:hover {
    color: #2563eb;
}

.contacts-address {
    font-style: normal;
    color: #4b5563;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

/* Форма */
.callback-form {
    background: #f9fafb;
    padding: 32px;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
}

.form-note {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 16px;
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal__content {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal__title {
    font-size: 24px;
    margin-bottom: 24px;
}

/* Мобильное меню */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 99;
}

.mobile-menu__list {
    list-style: none;
}

.mobile-menu__list li {
    margin-bottom: 16px;
}

.mobile-menu__list a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    display: block;
    padding: 8px 0;
}

.mobile-menu__phone {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.mobile-menu__phone a {
    color: #2563eb;
    font-weight: 600;
}

/* Футер */
.site-footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 30px;
}

.footer-wrapper {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 16px;
}

.footer-copyright__text {
    color: #9ca3af;
    font-size: 14px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-nav__title {
    color: white;
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-nav__list {
    list-style: none;
}

.footer-nav__list li {
    margin-bottom: 8px;
}

.footer-nav__list a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-nav__list a:hover {
    color: white;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .product-grid,
    .divisions-grid,
    .projects-grid,
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .main-nav,
    .header-contacts {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero__title {
        font-size: 36px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .product-grid,
    .divisions-grid,
    .projects-grid,
    .contacts-wrapper,
    .showcase-wrapper,
    .footer-nav,
    .services-grid,
    .solutions-grid,
    .directions-grid {
        grid-template-columns: 1fr;
    }

    .product-card--featured {
        transform: none;
    }

    .contact-item {
        flex-direction: column;
        gap: 4px;
    }

    .contact-item__label {
        width: auto;
    }

    .contacts-wrapper {
        gap: 30px;
    }

    .modal__content {
        padding: 30px 20px;
    }
}

/* Стили для страниц подразделений */
.division-hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f2ff 100%);
}

.division-hero__content {
    max-width: 600px;
}

.division-hero__title {
    font-size: 48px;
    margin-bottom: 16px;
}

.division-hero__subtitle {
    font-size: 24px;
    color: #4b5563;
    margin-bottom: 32px;
}

.division-hero__actions {
    display: flex;
    gap: 16px;
}

/* Стили для страницы TechSpot */
.services-grid,
.solutions-grid,
.directions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.service-card,
.solution-card,
.direction-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.service-card__header,
.solution-card__header,
.direction-card__header {
    padding: 20px;
    background: #2563eb;
    color: white;
}

.service-card__title,
.solution-card__title,
.direction-card__title {
    font-size: 20px;
    margin: 0;
}

.service-card__content,
.solution-card__content,
.direction-card__content {
    padding: 24px;
}

.service-card__list,
.solution-card__list {
    list-style: none;
}

.service-card__list li,
.solution-card__list li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.service-card__list li:last-child,
.solution-card__list li:last-child {
    border-bottom: none;
}

.service-card__price {
    margin-top: 20px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-value {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
}

/* Системные блоки BIT */
.computers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.computer-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s;
}

.computer-card:hover {
    transform: translateY(-4px);
    border-color: #2563eb;
}

.computer-card--featured {
    border: 2px solid #2563eb;
    transform: scale(1.05);
}

.computer-card__title {
    font-size: 24px;
    margin-bottom: 8px;
    color: #2563eb;
}

.computer-card__description {
    color: #666;
    margin-bottom: 16px;
}

.computer-card__specs {
    list-style: none;
    margin-bottom: 20px;
}

.computer-card__specs li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.computer-card__specs li::before {
    content: "•";
    color: #2563eb;
    position: absolute;
    left: 0;
}

.computer-card__price {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
}

/* Технологический стек */
.tech-stack {
    padding: 60px 0;
    background: #f9fafb;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.stack-item {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e5e7eb;
    font-weight: 500;
}

/* Тарифы */
.tariffs {
    padding: 60px 0;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tariff-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #e5e7eb;
}

.tariff-card__title {
    font-size: 24px;
    margin-bottom: 8px;
    color: #2563eb;
}

.tariff-card__description {
    color: #666;
    margin-bottom: 24px;
}

.tariff-card__price {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Ошибки формы */
.help-block {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: 0;
}

.has-error .form-control {
    border-color: #dc2626;
}

/* Страница проектов */
.projects-page {
    padding-bottom: 60px;
}

.page-hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f2ff 100%);
    padding: 60px 0;
    text-align: center;
}

.page-hero__title {
    font-size: 48px;
    margin-bottom: 16px;
}

.page-hero__subtitle {
    font-size: 20px;
    color: #4b5563;
}

/* Фильтр проектов */
.projects-filter {
    padding: 40px 0;
    border-bottom: 1px solid #e5e7eb;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 24px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.filter-tab.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

/* Категории проектов */
.project-category {
    margin-bottom: 60px;
}

.project-category:last-child {
    margin-bottom: 0;
}

.project-category__title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    font-size: 28px;
}

.project-category__badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

/* Карточка проекта (обновленная) */
.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.project-card__image {
    height: 220px;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    position: relative;
}

.project-card__content {
    padding: 24px;
}

.project-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.project-card__date {
    color: #666;
    font-size: 14px;
}

.project-card__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-card__tag {
    padding: 4px 12px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 12px;
    color: #4b5563;
}

.project-card__title {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.project-card__description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.project-card__link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.project-card__link:hover {
    text-decoration: underline;
}

/* CTA блок */
.cta-section {
    padding: 80px 0;
    background: #f9fafb;
    margin-top: 60px;
}

.cta-block {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-block__title {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-block__text {
    font-size: 18px;
    color: #4b5563;
    margin-bottom: 32px;
}

.btn--large {
    padding: 16px 40px;
    font-size: 18px;
}

/* Адаптивность для страницы проектов */
@media (max-width: 768px) {
    .page-hero__title {
        font-size: 36px;
    }

    .page-hero__subtitle {
        font-size: 18px;
    }

    .filter-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-tab {
        text-align: center;
    }

    .project-category__title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cta-block__title {
        font-size: 28px;
    }
}

section.development-directions, section.services, section.solutions, section.contacts-details, section.projects-list {
	padding-top: 48px;
}