/* ============================================
   ARETESTROY v3-F - Warm Stone Premium
   Government B2B + Top Design 2025
   ============================================ */

:root {
    /* Warm stone/cream palette - premium government feel */
    --bg: #f6f4f1;
    --bg-warm: #f0ece6;
    --bg-secondary: #eae5dd;
    --bg-card: #fffefa;
    --bg-dark: #2a2825;

    --text: #2d2926;
    --text-secondary: #5c564e;
    --text-muted: #8a847a;

    /* Sophisticated blue-slate for government sector */
    --primary: #3d5a73;
    --primary-light: #4a6b87;
    --primary-dark: #2d4457;
    --primary-glow: rgba(61, 90, 115, 0.12);

    /* Warm copper accent */
    --secondary: #a67c52;
    --secondary-light: #b8916a;
    --secondary-glow: rgba(166, 124, 82, 0.12);

    /* Partner colors - muted, sophisticated */
    --rosseti: #3d5a73;
    --rosseti-bg: rgba(61, 90, 115, 0.08);
    --vodokanal: #4a7c6a;
    --vodokanal-bg: rgba(74, 124, 106, 0.08);
    --gas: #9a8a5a;
    --gas-bg: rgba(154, 138, 90, 0.08);

    --border: #ddd8d0;
    --border-hover: #c9c3b8;

    --shadow-sm: 0 1px 3px rgba(45, 41, 38, 0.04);
    --shadow: 0 4px 12px rgba(45, 41, 38, 0.06), 0 2px 4px rgba(45, 41, 38, 0.04);
    --shadow-lg: 0 12px 24px rgba(45, 41, 38, 0.08), 0 4px 8px rgba(45, 41, 38, 0.04);
    --shadow-glow: 0 8px 30px var(--primary-glow);

    --font-display: 'Unbounded', sans-serif;
    --font-body: 'Inter', sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --radius: 16px;
    --radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    cursor: none;
    /* Subtle gradient background */
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 50%, var(--bg-secondary) 100%);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

button, input, select, textarea {
    cursor: none;
}

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

/* ============================================
   CUSTOM CURSOR - WARM MINIMAL
   ============================================ */

.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100001;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out),
                height 0.3s var(--ease-out),
                background 0.3s ease;
}

.cursor::before,
.cursor::after {
    content: '';
    position: absolute;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}

.cursor::before {
    width: 1px;
    height: 20px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.cursor::after {
    width: 20px;
    height: 1px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.cursor.hover {
    width: 12px;
    height: 12px;
    background: var(--secondary);
}

.cursor.hover::before,
.cursor.hover::after {
    opacity: 1;
}

.cursor.hover::before {
    height: 40px;
}

.cursor.hover::after {
    width: 40px;
}

.cursor-follower {
    position: fixed;
    width: 44px;
    height: 44px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100000;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-out),
                height 0.4s var(--ease-out),
                border-color 0.3s ease,
                opacity 0.3s ease;
    opacity: 0.35;
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    border-color: var(--secondary);
    opacity: 0.5;
}

@media (hover: none) {
    .cursor, .cursor-follower { display: none; }
    body, a, button, input, select, textarea { cursor: auto; }
}

/* ============================================
   QUICK BAR
   ============================================ */

.quick-bar {
    background: var(--primary);
    color: #f5f3f0;
    padding: 10px 0;
    font-size: 0.85rem;
}

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

.quick-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.quick-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 0.8rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #7cb87c;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.quick-phone {
    font-weight: 500;
    color: #f5f3f0;
    transition: opacity 0.3s ease;
}

.quick-phone:hover {
    opacity: 0.8;
}

.quick-partners {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(245, 243, 240, 0.7);
    font-size: 0.8rem;
}

.partner-chips {
    display: flex;
    gap: 8px;
}

.chip {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
}

.chip.rosseti {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.chip.vodokanal {
    background: var(--vodokanal);
    color: #fff;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(246, 244, 241, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.header:has(.nav-item:hover) {
    background: rgba(246, 244, 241, 1);
    border-bottom-color: transparent;
}

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

.logo-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
    color: var(--text);
}

.nav-link:hover::after {
    width: 100%;
}

/* Navigation item with mega menu */
.nav-item {
    position: static;
}

.nav-item.has-mega {
    position: static;
}

.nav-item .nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-arrow {
    transition: transform 0.3s var(--ease-out);
}

.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: calc(100% + 16px); /* 16px is header padding */
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 100vw;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
    z-index: 999;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 400px;
}

/* Categories sidebar */
.mega-categories {
    background: var(--bg-secondary);
    padding: 20px 0;
    border-right: 1px solid var(--border);
}

.mega-category {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
    color: inherit;
}

.mega-category:hover,
.mega-category.active {
    background: var(--bg-card);
    border-left-color: var(--primary);
}

.mega-category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: var(--radius-sm);
    color: var(--primary);
    transition: all 0.2s ease;
}

.mega-category:hover .mega-category-icon,
.mega-category.active .mega-category-icon {
    background: var(--primary);
    color: #fff;
}

.mega-category-info {
    flex: 1;
}

.mega-category-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 2px;
}

.mega-category-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mega-category-arrow {
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
}

.mega-category:hover .mega-category-arrow,
.mega-category.active .mega-category-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Subcategories panel */
.mega-subcategories {
    padding: 24px 32px;
    position: relative;
}

.mega-subcontent {
    display: none;
}

.mega-subcontent.active {
    display: block;
    animation: megaFadeIn 0.3s ease;
}

@keyframes megaFadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mega-subheader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.mega-subheader h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.mega-viewall {
    position: relative;
    z-index: 10;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.2s ease;
    cursor: pointer;
}

.mega-viewall:hover {
    color: var(--secondary);
}

/* Columns layout */
.mega-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.mega-column-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.mega-links {
    list-style: none;
}

.mega-links li {
    margin-bottom: 8px;
}

.mega-links a {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    transition: all 0.2s ease;
    cursor: pointer;
}

.mega-links a:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.mega-links a span {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Featured product */
.mega-featured {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 16px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg) 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.mega-featured-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.mega-featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    color: var(--primary);
}

.mega-featured-info {
    flex: 1;
}

.mega-featured-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--secondary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 6px;
}

.mega-featured-title {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.mega-featured-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 2px 8px var(--primary-glow);
    overflow: visible;
    z-index: 1;
}

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

/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    padding: 60px 0 80px;
    overflow: hidden;
}

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

/* Sacred Geometry Pattern - warm tone */
.sacred-geometry {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%233d5a73' stroke-width='0.5'%3E%3Ccircle cx='100' cy='100' r='80'/%3E%3Ccircle cx='100' cy='100' r='60'/%3E%3Ccircle cx='100' cy='100' r='40'/%3E%3Ccircle cx='100' cy='100' r='20'/%3E%3Cline x1='100' y1='20' x2='100' y2='180'/%3E%3Cline x1='20' y1='100' x2='180' y2='100'/%3E%3Cline x1='43' y1='43' x2='157' y2='157'/%3E%3Cline x1='157' y1='43' x2='43' y2='157'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 200px 200px;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary) 0%, #4a6b87 100%);
    top: -250px;
    right: -150px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--secondary) 0%, #8a6a42 100%);
    bottom: -200px;
    left: -150px;
}

/* Pipe circles - sacred geometry decoration */
.pipe-circles {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    height: 350px;
    opacity: 0.05;
}

.pipe-circle {
    position: absolute;
    border: 1px solid var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pipeRotate 40s linear infinite;
}

.pipe-circle:nth-child(1) { width: 100%; height: 100%; }
.pipe-circle:nth-child(2) { width: 80%; height: 80%; animation-direction: reverse; animation-duration: 35s; }
.pipe-circle:nth-child(3) { width: 60%; height: 60%; animation-duration: 30s; }
.pipe-circle:nth-child(4) { width: 40%; height: 40%; animation-direction: reverse; animation-duration: 25s; }
.pipe-circle:nth-child(5) { width: 20%; height: 20%; animation-duration: 20s; }

@keyframes pipeRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

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

.hero-calculator {
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

/* Large hero title variant */
.hero-title-large {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 30px;
}

.hero-text-large {
    max-width: 700px;
}

.hero-desc-large {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.hero-stats-large {
    margin-top: 20px;
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.35s; }
.title-line:nth-child(3) { animation-delay: 0.5s; }

.title-line.accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.3s forwards;
}

.hero-stats {
    display: flex;
    gap: 16px;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s forwards;
}

.stat-card {
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all 0.4s var(--ease-out);
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 35px var(--primary-glow);
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    transition: text-shadow 0.3s ease;
}

.stat-card:hover .stat-value {
    text-shadow: 0 0 20px var(--primary-glow);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Calculator */
.hero-calculator {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    animation: scaleIn 0.8s var(--ease-out) 0.3s forwards;
}

.calc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.calc-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.calc-badge {
    padding: 4px 12px;
    background: var(--vodokanal-bg);
    color: var(--vodokanal);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calc-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.calc-field input,
.calc-field select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    transition: all 0.3s ease;
    outline: none;
}

.calc-field input:focus,
.calc-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.calc-field input::placeholder {
    color: var(--text-muted);
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    padding-right: 40px;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-secondary);
    pointer-events: none;
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Horizontal form layout */
.calc-form-horizontal {
    flex-direction: row;
    align-items: flex-end;
}

.calc-row-horizontal {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.calc-row-horizontal .calc-field {
    flex: 1;
    min-width: 120px;
}

.calc-row-horizontal .calc-field:first-child {
    min-width: 150px;
}

.calc-row-horizontal .calc-submit {
    margin-top: 0;
    white-space: nowrap;
    padding: 12px 20px;
}

.calc-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
    margin-top: 8px;
    overflow: visible;
    z-index: 1;
}

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

/* ============================================
   SECTION STYLES
   ============================================ */

.section-header {
    margin-bottom: 40px;
}

.section-header.center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* ============================================
   CATALOG
   ============================================ */

.catalog {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.catalog::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%233d5a73' stroke-width='0.5'%3E%3Ccircle cx='200' cy='200' r='180'/%3E%3Ccircle cx='200' cy='200' r='140'/%3E%3Ccircle cx='200' cy='200' r='100'/%3E%3Ccircle cx='200' cy='200' r='60'/%3E%3Ccircle cx='200' cy='200' r='20'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
}

.catalog-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out);
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.tab-btn.active {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg-card);
}

.tab-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.tab-dot.rosseti {
    background: var(--rosseti);
}

.tab-dot.vodokanal {
    background: var(--vodokanal);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ============================================
   CATALOG CARDS
   ============================================ */

a.catalog-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.catalog-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow: var(--shadow);
}

.catalog-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), 0 20px 40px rgba(61, 90, 115, 0.08);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.catalog-card:hover .card-glow {
    opacity: 0.08;
}

/* Card pipe icon decoration */
.card-pipe-decoration {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
    color: var(--primary);
    opacity: 0.06;
    transition: opacity 0.4s ease, transform 0.6s var(--ease-out);
}

.catalog-card:hover .card-pipe-decoration {
    opacity: 0.12;
    transform: rotate(90deg);
}

.card-header {
    padding: 16px 16px 0;
}

.card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge.rosseti {
    background: var(--rosseti-bg);
    color: var(--rosseti);
}

.badge.vodokanal {
    background: var(--vodokanal-bg);
    color: var(--vodokanal);
}

.badge.gas {
    background: var(--gas-bg);
    color: #7a6a3a;
}

.badge.vodokanal-spb {
    background: rgba(74, 124, 140, 0.1);
    color: #4a7c8c;
}

.badge.mosvodostok {
    background: rgba(100, 120, 150, 0.1);
    color: #64788e;
}

.card-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s var(--ease-out);
}

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

.card-body {
    padding: 0 16px 16px;
}

.card-body h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-body > p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.spec {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.spec-value {
    font-size: 0.85rem;
    font-weight: 500;
}

.card-footer {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.card-link {
    position: relative;
    z-index: 11;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    cursor: pointer;
}

.card-link:hover {
    color: var(--primary);
}

.card-quote {
    position: relative;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
    overflow: visible;
    z-index: 1;
}

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

/* Compact Cards */
.catalog-card.compact {
    padding: 0;
    box-shadow: var(--shadow-sm);
}

.card-compact-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.card-compact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    color: var(--primary);
    flex-shrink: 0;
}

.card-compact-text {
    flex: 1;
}

.card-compact-text h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.card-compact-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ============================================
   TRUST SECTION
   ============================================ */

.trust {
    position: relative;
    padding: 80px 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

.trust::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background-image: url("data:image/svg+xml,%3Csvg width='300' height='300' viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%233d5a73' stroke-width='0.5'%3E%3Cpolygon points='150,10 280,80 280,220 150,290 20,220 20,80'/%3E%3Cpolygon points='150,50 240,100 240,200 150,250 60,200 60,100'/%3E%3Cpolygon points='150,90 200,120 200,180 150,210 100,180 100,120'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.trust-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease-out);
    box-shadow: var(--shadow-sm);
}

.trust-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}

/* Accreditation Card */
.trust-card.accred {
    grid-column: span 2;
    padding: 24px;
}

.accred-header {
    margin-bottom: 20px;
}

.accred-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.accred-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.accred-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.accred-item:hover {
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

.accred-item.rosseti .accred-logo {
    background: var(--rosseti-bg);
    color: var(--rosseti);
}

.accred-item.vodokanal .accred-logo {
    background: var(--vodokanal-bg);
    color: var(--vodokanal);
}

.accred-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.accred-logo span {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
}

.accred-info {
    flex: 1;
}

.accred-info strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.accred-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.accred-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--vodokanal-bg);
    border-radius: 50%;
    color: var(--vodokanal);
}

.accred-item.rosseti .accred-check {
    background: var(--rosseti-bg);
    color: var(--rosseti);
}

.accred-item.vodokanal .accred-check {
    background: var(--vodokanal-bg);
    color: var(--vodokanal);
}

/* Feature Cards */
.trust-card.feature {
    padding: 24px;
    transition: all 0.4s var(--ease-out);
}

.trust-card.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary-glow);
    border-radius: var(--radius-sm);
    color: var(--primary);
    margin-bottom: 16px;
}

.trust-card.feature h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.trust-card.feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============================================
   CTA SECTION
   ============================================ */

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

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

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

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

.cta-form {
    display: flex;
    gap: 12px;
}

.cta-form input {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    width: 240px;
    outline: none;
    transition: all 0.3s ease;
}

.cta-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.cta-form input:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-submit {
    position: relative;
    padding: 14px 24px;
    background: var(--bg-card);
    color: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s var(--ease-out);
    overflow: visible;
    z-index: 1;
}

.cta-submit:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   CONTACTS
   ============================================ */

.contacts {
    padding: 80px 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contacts-info h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease-out);
    box-shadow: var(--shadow-sm);
}

.contact-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    color: var(--primary);
}

.contact-card div span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.contact-card div strong {
    font-size: 0.95rem;
    font-weight: 500;
}

.contacts-inn {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact Form */
.contacts-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.contacts-form-wrap h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
    margin-top: 4px;
    overflow: visible;
    z-index: 1;
}

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

/* Form Consent Checkboxes */
.form-consent {
    margin: 16px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.form-consent .consent-checkbox {
    display: flex;
    width: 100%;
}

.consent-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.consent-checkbox a {
    color: var(--primary);
    text-decoration: underline;
}

.consent-checkbox a:hover {
    color: var(--primary-light);
}

.consent-inline {
    margin: 12px 0;
}

/* File Upload */
.file-upload {
    margin: 12px 0;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.file-upload-label input[type="file"] {
    display: none;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.file-upload-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-glow);
}

.file-upload-name {
    font-size: 0.8rem;
    color: var(--primary);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-warm);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand .logo-text {
    font-size: 1rem;
}

.footer-brand p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.footer-contact a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

/* ============================================
   MODAL
   ============================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(42, 40, 37, 0.5);
    backdrop-filter: blur(8px);
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s var(--ease-out);
}

.modal.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg-card);
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

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

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    transition: all 0.3s ease;
}

.modal-form input:focus,
.modal-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
    color: var(--text-muted);
}

.modal-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* ============================================
   BUTTON GLOW EFFECTS
   ============================================ */

.btn-cta::before,
.calc-submit::before,
.card-quote::before,
.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: inherit;
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-cta:hover::before,
.calc-submit:hover::before,
.card-quote:hover::before,
.btn-submit:hover::before {
    opacity: 0.3;
}

/* ============================================
   MAGNETIC BUTTON EFFECT
   ============================================ */

.magnetic {
    transition: transform 0.2s var(--ease-out);
}

/* ============================================
   RESPONSIVE
   ============================================ */

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

    .hero-calculator {
        max-width: 500px;
    }

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

    .trust-card.accred {
        grid-column: span 1;
    }

    .accred-list {
        grid-template-columns: 1fr;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pipe-circles {
        display: none;
    }
}

@media (max-width: 768px) {
    .quick-bar-inner {
        flex-direction: column;
        gap: 10px;
    }

    .nav {
        display: none;
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 1;
        min-width: 80px;
    }

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

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

    .cta-form input {
        width: 100%;
    }

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

    .footer-contact {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .calc-row {
        grid-template-columns: 1fr;
    }
}
