/* ===== Hero-карусель главной (pcarbon.ru) =====
   Автономные стили — не зависят от Tailwind bundle.
   Управление контентом — в /Views/Shared/Components/Home/Hero.cshtml. */

.pc-hero {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    border-bottom: 1px solid #e7e5e4;
    min-height: 480px;
}
@media (min-width: 768px) { .pc-hero { min-height: 560px; } }
@media (min-width: 1024px) { .pc-hero { min-height: 620px; } }

.pc-hero-carousel {
    position: relative;
    min-height: inherit;
    display: flex;
    flex-direction: column;
}

.pc-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: opacity 350ms ease;
}

.pc-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(13,148,136,0.65), rgba(15,23,42,0.7));
}
@media (max-width: 767px) {
    .pc-hero-overlay { background: linear-gradient(135deg, rgba(13,148,136,0.7), rgba(15,23,42,0.85)); }
}

.pc-hero-stage {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 3.5rem 0;
}
@media (min-width: 640px) { .pc-hero-stage { padding: 4.5rem 0; } }
@media (min-width: 1024px) { .pc-hero-stage { padding: 5.5rem 0; } }

.pc-hero-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 640px) { .pc-hero-inner { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .pc-hero-inner { padding-left: 2rem; padding-right: 2rem; } }

.pc-hero-slides {
    position: relative;
    width: 100%;
    min-height: 300px;
}
@media (max-width: 767px) { .pc-hero-slides { min-height: 340px; } }
@media (min-width: 1024px) { .pc-hero-slides { min-height: 380px; } }

.pc-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 450ms ease, transform 450ms ease;
    pointer-events: none;
}
.pc-hero-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.pc-hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.pc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    margin-bottom: 1rem;
}
.pc-hero-badge::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #f59e0b;
}

.pc-hero-title {
    font-size: 2.25rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1.25rem 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}
@media (min-width: 640px) { .pc-hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .pc-hero-title { font-size: 3.5rem; } }

.pc-hero-subtitle {
    font-size: 1.0625rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.9);
    margin: 0 0 2rem 0;
    max-width: 36rem;
    text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}
@media (min-width: 1024px) { .pc-hero-subtitle { font-size: 1.125rem; } }

.pc-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
@media (min-width: 640px) { .pc-hero-actions { flex-direction: row; } }

.pc-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
    cursor: pointer;
}
.pc-hero-btn--primary {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #ffffff;
}
.pc-hero-btn--primary:hover {
    background: #f5f5f4;
    color: #0f172a;
}
.pc-hero-btn--secondary {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.5);
}
.pc-hero-btn--secondary:hover {
    background: rgba(255,255,255,0.18);
    color: #ffffff;
    border-color: #ffffff;
}

/* Стрелки */
.pc-hero-nav {
    position: absolute;
    bottom: 56px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.45);
    background: rgba(15,23,42,0.45);
    backdrop-filter: blur(10px);
    color: rgba(255,255,255,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 5;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease;
}
.pc-hero-nav:hover {
    background: rgba(15,23,42,0.7);
    border-color: rgba(255,255,255,0.8);
}
.pc-hero-nav span {
    display: inline-block;
    font-size: 22px;
    line-height: 1;
    transform: translateY(-1px);
}
.pc-hero-nav--prev { right: 72px; }
.pc-hero-nav--next { right: 16px; }
@media (min-width: 768px) { .pc-hero-nav { display: inline-flex; } }

/* Точки */
.pc-hero-dots {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 18px;
    display: flex;
    gap: 8px;
    justify-content: center;
    z-index: 5;
}
@media (min-width: 768px) { .pc-hero-dots { bottom: 14px; } }
.pc-hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.pc-hero-dot:hover {
    border-color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.55);
}
.pc-hero-dot.is-active {
    background: #ffffff;
    border-color: #ffffff;
    transform: scale(1.15);
}
@media (max-width: 767px) {
    .pc-hero-dot.is-active { transform: none; }
}
