/* templet8 home */
.t8-hero { background: #ddd; }
.t8-hero-swiper { width: 100%; }
.t8-hero-slide {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    background: linear-gradient(120deg, var(--t8-nav) 0%, #005cb8 55%, var(--t8-accent) 100%);
}
.t8-hero-slide.t8-hero-b {
    background: linear-gradient(120deg, #003070 0%, var(--t8-nav) 50%, #0066aa 100%);
}
.t8-hero-slide.t8-hero-c {
    background: linear-gradient(120deg, #1a5276 0%, var(--t8-nav) 45%, var(--t8-accent) 100%);
}
.t8-hero-slide.has-image { background: #222; }
.t8-hero-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .92;
}
.t8-hero-copy {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 48px 0;
    max-width: 640px;
}
.t8-hero-kicker {
    margin: 0 0 10px;
    font-size: 13px;
    letter-spacing: .2em;
    text-transform: uppercase;
    opacity: .85;
}
.t8-hero-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.25;
}
.t8-hero-copy > span {
    display: block;
    font-size: 16px;
    opacity: .9;
    margin-bottom: 22px;
    line-height: 1.7;
}
.t8-btn-hero {
    background: var(--t8-hotline);
    padding: 12px 32px;
}
.t8-btn-hero:hover { background: #c62828; }

.t8-hero-pagination .swiper-pagination-bullet {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,.45);
    opacity: 1;
}
.t8-hero-pagination .swiper-pagination-bullet-active {
    background: #fff;
    width: 48px;
}

.t8-search-strip {
    background: #fff;
    border-bottom: 1px solid var(--t8-line);
    padding: 14px 0;
}
.t8-search-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.t8-hot-cats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 13px;
}
.t8-hot-cats strong { color: var(--t8-nav); white-space: nowrap; }
.t8-hot-cats a {
    color: #666;
    padding: 2px 0;
    border-bottom: 1px solid transparent;
}
.t8-hot-cats a:hover { color: var(--t8-accent); border-bottom-color: var(--t8-accent); }
.t8-search-form {
    display: flex;
    height: 38px;
    min-width: 280px;
    flex: 1;
    max-width: 420px;
    border: 1px solid #ccc;
    overflow: hidden;
}
.t8-search-form input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 12px;
    min-width: 0;
}
.t8-search-form button {
    border: 0;
    background: var(--t8-nav);
    color: #fff;
    padding: 0 20px;
    cursor: pointer;
    font-weight: 600;
}
.t8-search-form button:hover { background: var(--t8-nav-dark); }

.t8-main-block { padding: 28px 0 36px; }
.t8-main-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

.t8-aside {
    background: #fff;
    border: 1px solid var(--t8-line);
    overflow: hidden;
}
.t8-aside-head {
    background: var(--t8-nav);
    color: #fff;
    padding: 14px 16px;
    text-align: center;
}
.t8-aside-head strong {
    display: block;
    font-size: 16px;
    letter-spacing: .08em;
}
.t8-aside-head em {
    display: block;
    font-size: 11px;
    opacity: .75;
    font-style: normal;
    margin-top: 4px;
    letter-spacing: .12em;
}
.t8-aside-cats { list-style: none; margin: 0; padding: 0; }
.t8-aside-cats > li { border-bottom: 1px solid #f0f0f0; }
.t8-aside-cats > li > a {
    display: block;
    padding: 12px 16px;
    color: #444;
    font-size: 14px;
    transition: background .15s, color .15s;
}
.t8-aside-cats > li.is-on > a,
.t8-aside-cats > li > a:hover {
    background: #f0f8fd;
    color: var(--t8-accent);
    border-left: 3px solid var(--t8-accent);
    padding-left: 13px;
}
.t8-aside-sub { list-style: none; margin: 0; padding: 0 0 8px; background: #fafafa; }
.t8-aside-sub li a {
    display: block;
    padding: 8px 16px 8px 28px;
    font-size: 13px;
    color: #666;
}
.t8-aside-sub li.is-on a,
.t8-aside-sub li a:hover { color: var(--t8-accent); }
.t8-aside-sub li.is-deep a { padding-left: 40px; font-size: 12px; }

.t8-main-col {
    background: #fff;
    border: 1px solid var(--t8-line);
    padding: 20px;
}
.t8-block-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--t8-nav);
}
.t8-block-title h2 {
    margin: 0;
    font-size: 20px;
    color: var(--t8-nav);
    font-weight: 700;
}
.t8-block-title em {
    display: block;
    font-size: 11px;
    color: #999;
    font-style: normal;
    letter-spacing: .1em;
    margin-top: 4px;
}
.t8-block-title-light h2 { color: #fff; }
.t8-block-title-light em { color: rgba(255,255,255,.7); }
.t8-block-title-center { text-align: center; margin-bottom: 24px; }
.t8-more-link {
    color: var(--t8-accent);
    font-size: 14px;
    font-weight: 600;
}
.t8-more-link:hover { color: var(--t8-nav); }

.t8-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.t8-product-grid-sm { grid-template-columns: repeat(4, 1fr); }
.t8-product-card {
    border: 1px solid #eee;
    transition: box-shadow .2s, border-color .2s;
}
.t8-product-card:hover {
    border-color: var(--t8-accent);
    box-shadow: 0 4px 16px rgba(0,64,152,.1);
}
.t8-product-media {
    display: block;
    background: #f8f8f8;
    overflow: hidden;
}
.t8-product-body { padding: 12px; }
.t8-product-body h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.t8-product-body h3 a:hover { color: var(--t8-accent); }
.t8-product-body strong { color: var(--t8-hotline); font-size: 16px; }
.t8-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    color: #bbb;
    font-size: 13px;
}
.t8-empty-tip { color: #999; text-align: center; padding: 32px; }

.t8-about {
    background: var(--t8-nav);
    color: #fff;
    padding: 48px 0;
}
.t8-about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.t8-about-body {
    margin: 16px 0 24px;
    line-height: 1.85;
    opacity: .9;
    font-size: 15px;
}
.t8-about-media img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.t8-about-placeholder {
    aspect-ratio: 16/10;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.t8-about-placeholder span {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .2em;
    opacity: .35;
}

.t8-advantages {
    padding: 148px 0;
    background: #fff;
}
.t8-adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.t8-adv-item {
    text-align: center;
    padding: 24px 16px;
    border: 1px solid var(--t8-line);
    transition: border-color .2s, transform .2s;
}
.t8-adv-item:hover {
    border-color: var(--t8-accent);
    transform: translateY(-2px);
}
.t8-adv-num {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--t8-nav);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
}
.t8-adv-item h3 { margin: 0 0 8px; font-size: 16px; color: var(--t8-nav); }
.t8-adv-item p { margin: 0; color: #666; font-size: 13px; line-height: 1.6; }

@media (max-width: 1024px) {
    .t8-product-grid,
    .t8-product-grid-sm,
    .t8-adv-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .t8-hero-slide { min-height: 280px; }
    .t8-main-layout { grid-template-columns: 1fr; }
    .t8-aside { order: 2; }
    .t8-main-col { order: 1; }
    .t8-about-inner { grid-template-columns: 1fr; }
    .t8-product-grid,
    .t8-product-grid-sm,
    .t8-adv-grid { grid-template-columns: repeat(2, 1fr); }
    .t8-search-form { max-width: none; width: 100%; }
}

@media (max-width: 480px) {
    .t8-product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .t8-adv-grid { grid-template-columns: 1fr; }
}
