/* ============================================
   CATALOG PAGES STYLES
   ============================================ */

/* Fix text rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--bg-secondary);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumbs-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 0.85rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs .current {
    color: var(--text);
    font-weight: 500;
}

/* Page Hero */
.page-hero {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.page-hero-bg .gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}

.page-hero-bg .orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-glow);
    top: -100px;
    right: 10%;
}

.page-hero-bg .orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-glow);
    bottom: -50px;
    left: 5%;
}

.page-hero-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: center;
}

.page-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 20px;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 20px;
}

.page-hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.page-hero-stats {
    display: flex;
    gap: 40px;
}

.page-hero-stats .stat-item {
    text-align: left;
}

.page-hero-stats .stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.page-hero-stats .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.page-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pipe-visual {
    width: 200px;
    height: 200px;
    animation: pipeRotate 20s linear infinite;
}

.pipe-visual svg {
    width: 100%;
    height: 100%;
}

@keyframes pipeRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Category Section */
.category-section {
    padding: 80px 0;
    background: var(--bg);
}

.category-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.category-card {
    position: relative;
    display: flex;
    gap: 24px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease-out);
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary);
    transition: height 0.3s var(--ease-out);
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px var(--primary-glow);
    transform: translateY(-4px);
}

.category-card:hover::before {
    height: 100%;
}

.category-card.featured {
    border-color: var(--secondary);
}

.category-card.featured::before {
    background: var(--secondary);
}

.category-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: var(--secondary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 100px;
}

.category-card-badge.rosseti {
    background: var(--rosseti);
}

.category-card-badge.vodokanal {
    background: var(--vodokanal);
}

.category-card-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.category-card-icon svg {
    width: 100%;
    height: 100%;
}

.category-card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
    padding: 12px;
    box-sizing: border-box;
}

.category-card:hover .category-card-image img {
    transform: scale(1.05);
}

.category-card-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.category-card-content > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.category-features {
    list-style: none;
    margin-bottom: 16px;
}

.category-features li {
    position: relative;
    padding-left: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.category-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    transition: gap 0.2s ease;
}

.category-card:hover .category-link {
    gap: 10px;
}

/* Advantages Section */
.advantages-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.advantages-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.advantage-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s var(--ease-out);
}

.advantage-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.advantage-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    color: var(--primary);
}

.advantage-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.advantage-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Applications Section */
.applications-section {
    padding: 80px 0;
    background: var(--bg);
}

.applications-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.application-item {
    position: relative;
    padding: 28px 28px 28px 80px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease-out);
}

.application-item:hover {
    border-color: var(--primary);
    transform: translateX(8px);
}

.application-number {
    position: absolute;
    left: 24px;
    top: 28px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.3;
}

.application-item h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.application-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.cta-content p {
    color: rgba(255,255,255,0.8);
}

.cta-actions {
    display: flex;
    gap: 16px;
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    background: var(--bg-secondary);
}

.cta-section .btn-outline {
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-section .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* Footer */
.footer {
    padding: 40px 0;
    background: var(--bg-dark);
    color: #fff;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-info p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin-top: 4px;
}

.footer-contacts {
    text-align: right;
}

.footer-contacts a {
    display: block;
    color: #fff;
    font-weight: 500;
    margin-bottom: 4px;
}

.footer-contacts span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* ============================================
   PRODUCT PAGE STYLES
   ============================================ */

/* Product Hero */
.product-hero {
    position: relative;
    padding: 60px 0 80px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
}

.product-hero-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
}

.product-hero-content {
    padding-top: 20px;
}

.product-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 16px;
}

.product-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 16px;
}

.product-hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.product-key-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.key-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.key-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-glow);
    border-radius: 8px;
    color: var(--primary);
}

.key-feature-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.product-cta {
    display: flex;
    gap: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Product Card (sidebar) */
.product-card-sticky {
    position: sticky;
    top: 100px;
}

.product-hero-image {
    margin-bottom: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.product-hero-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

/* Image Slider */
.product-image-slider {
    position: relative;
    margin-bottom: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
}

.slider-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-slide-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-secondary);
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: var(--text-muted);
}

.slider-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.product-specs-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.product-specs-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.specs-list {
    list-style: none;
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list .spec-label {
    color: var(--text-muted);
}

.specs-list .spec-value {
    font-weight: 600;
    color: var(--text);
}

/* Product Types Section */
.product-types-section {
    padding: 80px 0;
    background: var(--bg);
}

.product-types-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.product-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-type-card {
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease-out);
}

.product-type-card.compact > p {
    display: none;
}

.product-type-image {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: var(--bg-secondary);
    border-radius: calc(var(--radius) - 4px);
    overflow: hidden;
}

.product-type-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 6px;
}

.product-type-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.product-type-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.product-type-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}

.product-type-tag {
    padding: 4px 10px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 100px;
}

.product-type-card > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-type-specs {
    list-style: none;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.product-type-specs li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.85rem;
}

.product-type-specs .label {
    color: var(--text-muted);
}

.product-type-specs .value {
    font-weight: 500;
    color: var(--text);
}

/* Layers Section */
.layers-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.layers-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.layers-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
}

.layers-visual {
    position: relative;
}

.layers-diagram {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.layer-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 3px solid;
    transition: all 0.3s ease;
}

.layer-circle.outer {
    width: 280px;
    height: 280px;
    border-color: var(--secondary);
}

.layer-circle.middle {
    width: 220px;
    height: 220px;
    border-color: var(--primary);
    border-width: 12px;
}

.layer-circle.inner {
    width: 140px;
    height: 140px;
    border-color: var(--secondary);
}

.layer-circle.core {
    width: 80px;
    height: 80px;
    background: var(--bg);
    border: none;
}

.layers-info h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

.layers-info > p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.layers-list {
    list-style: none;
}

.layers-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.layers-list li:last-child {
    border-bottom: none;
}

.layer-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

.layer-indicator.outer { background: var(--secondary); }
.layer-indicator.middle { background: var(--primary); }
.layer-indicator.inner { background: var(--secondary); }

.layer-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.layer-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Comparison Table */
.comparison-section {
    padding: 80px 0;
    background: var(--bg);
}

.comparison-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--bg-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table td {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.comparison-table td:first-child {
    font-weight: 500;
    color: var(--text);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: var(--bg-secondary);
}

.check-icon {
    color: var(--primary);
}

/* SEO Content Section */
.seo-content {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.seo-content-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.seo-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    margin-top: 40px;
}

.seo-content h2:first-child {
    margin-top: 0;
}

.seo-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.seo-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.seo-content li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .page-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-hero-visual {
        display: none;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-hero-inner {
        grid-template-columns: 1fr;
    }

    .product-card-sticky {
        position: static;
    }

    .product-types-grid {
        grid-template-columns: 1fr;
    }

    .layers-content {
        grid-template-columns: 1fr;
    }

    .layers-visual {
        order: -1;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 40px 0;
    }

    .page-hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .applications-grid {
        grid-template-columns: 1fr;
    }

    .product-key-features {
        grid-template-columns: 1fr;
    }

    .product-cta {
        flex-direction: column;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-contacts {
        text-align: center;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px;
    }
}
