/* ========================================
   НетралкаVZT - Styles for Tilda
   ======================================== */

/* ========================================
   RESET & BASE STYLES
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --accent: #3b82f6;
    --accent-dark: #2563eb;
    --background: #ffffff;
    --foreground: #0f172a;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --card: #ffffff;
    --border: #e2e8f0;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-500: #64748b;
    --green: #16a34a;
    --green-bg: rgba(34, 197, 94, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #0f172a;
    background: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}



/* Remove weird default/visited link colors */
a:visited {
    color: inherit;
}

/* Remove orange tap highlight on mobile */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Replace default focus outline with a softer focus ring */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    border-radius: 6px;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(59, 130, 246, 0.2);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-gradient {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}


.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: #3b82f6;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: #3b82f6;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    display: none;
}

.nav {
    display: none;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: #64748b;
    transition: color 0.2s;
    text-decoration: none;
}

.nav-link:hover {
    color: #3b82f6;
}

.header-phone {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    color: #0f172a;
}

.header-phone svg {
    color: #3b82f6;
}

.mobile-menu-btn {
    display: flex;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    background: white;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    padding: 0.75rem 0;
    color: #64748b;
    text-decoration: none;
    border-bottom: 1px solid #e2e8f0;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }

    .header-phone {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .logo-subtitle {
        display: block;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
    color: white;
    overflow: hidden;
    position: relative;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNmZmZmZmYiIGZpbGwtb3BhY2l0eT0iMC4wMyI+PHBhdGggZD0iTTM2IDM0djItSDI0di0yaDEyek0zNiAyMHYySDE0di0yaDIyek0zNiA2djJIMTR2LTJoMjJ6Ii8+PC9nPjwvZz48L3N2Zz4=");
}

.hero-content {
    position: relative;
    padding: 5rem 0;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title-highlight {
    color: #3b82f6;
}

.hero-description {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.hero-stat {
    text-align: center;
    transition: transform 0.3s ease;
}

.hero-stat:hover {
    transform: scale(1.05);
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 8rem 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-stat-value {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }

    .hero-description {
        font-size: 1.25rem;
    }
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: #f1f5f9;
}

.section-dark {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 0.375rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-description {
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .section {
        padding: 5rem 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* ========================================
   IN STOCK BANNER - CTA
   ======================================== */
.instock-banner {
    padding: 2.5rem 0;
}

.instock-content {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .instock-content {
        flex-direction: row;
        text-align: left;
    }
}

.instock-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.instock-desc {
    color: #64748b;
}

/* ========================================
   CALCULATOR SECTION
   ======================================== */
.calculator-section {
    background: #f1f5f9;
}

.calculator-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.calculator-steps {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.calc-step {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: #f1f5f9;
    color: #64748b;
}

.calc-step.active {
    background: #3b82f6;
    color: white;
}

.calc-step.done {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.calculator-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .calculator-grid {
        grid-template-columns: 3fr 2fr;
    }
}

.calculator-form {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.calc-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.calc-question p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.calc-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.calc-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-option:hover {
    border-color: #3b82f6;
}

.calc-option input {
    display: none;
}

.calc-option input:checked + .calc-checkbox {
    background: #3b82f6;
    border-color: #3b82f6;
}

.calc-option input:checked + .calc-checkbox::after {
    opacity: 1;
}

.calc-option input:checked ~ span:last-child {
    color: #3b82f6;
}

.calc-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #64748b;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
}

.calc-checkbox::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

.calc-next-btn {
    width: 100%;
}

.calculator-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .calculator-sidebar {
        display: block;
    }
}

.calc-info-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
}

.calc-info-icon {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #3b82f6;
}

.calc-info-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.calc-info-card p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.calc-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    font-weight: 500;
}

/* ========================================
   HOW WE WORK SECTION
   ======================================== */
.howwework-section {
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
    margin-bottom: 2rem;
    justify-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
    }
}

.step-item {
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
}

.step-item:hover {
    transform: scale(1.05);
}

/* Connector line between steps on desktop */
@media (min-width: 768px) {
    .step-item:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 32px;
        right: -1rem;
        width: calc(100% - 32px);
        height: 2px;
        background: linear-gradient(90deg, rgba(59, 130, 246, 0.4), rgba(59, 130, 246, 0.1));
        transform: translateX(50%);
    }
}

.step-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #3b82f6;
    position: relative;
}

.step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

.step-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.step-item p {
    font-size: 0.75rem;
    color: #64748b;
}

.step-connector {
    display: none;
}

.steps-cta {
    text-align: center;
}

/* ========================================
   CUSTOM SOLUTIONS SECTION
   ======================================== */
.custom-section {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
}

.custom-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .custom-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.custom-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .custom-title {
        font-size: 2rem;
    }
}

.custom-desc {
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.custom-benefits {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .custom-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

.custom-benefit {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
}

.custom-benefit-icon {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #3b82f6;
}

.custom-benefit h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.custom-benefit p {
    font-size: 0.75rem;
    color: #94a3b8;
}

.custom-cta-btn {
    background: white;
    color: #0f172a;
    font-weight: 600;
    width: 100%;
}

@media (min-width: 640px) {
    .custom-cta-btn {
        width: auto;
    }
}

.custom-cta-btn:hover {
    background: #f1f5f9;
}

.custom-image {
    display: none;
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .custom-image {
        display: block;
    }
}

.custom-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.custom-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.6), transparent);
}

/* ========================================
   OLD STOCK GRID (can remove if not used)
   ======================================== */
.stock-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.stock-grid {
    display: grid;
    gap: 1rem;
}

.stock-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stock-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.stock-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    flex-shrink: 0;
}

.stock-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stock-item-desc {
    font-size: 0.875rem;
    color: #64748b;
}

@media (min-width: 768px) {
    .stock-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stock-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   CALCULATOR SECTION
   ======================================== */
.calculator-grid {
    display: grid;
    gap: 2rem;
}

.calculator-card {
    background: white;
    color: #0f172a;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.calc-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.calc-progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.3s ease;
}

.calc-progress-dot.active {
    background: #3b82f6;
    transform: scale(1.2);
}

.calc-step-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.calc-step-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.calc-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.calc-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-option:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.calc-option.selected {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.calc-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.calc-buttons {
    display: flex;
    gap: 0.75rem;
}

.calc-buttons .btn {
    flex: 1;
}

.calculator-info {
    display: none;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
}

.calculator-info-icon {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #3b82f6;
}

@media (min-width: 1024px) {
    .calculator-grid {
        grid-template-columns: 3fr 2fr;
    }

    .calculator-info {
        display: block;
    }
}

/* ========================================
   HOW WE WORK
   ======================================== */
.steps-grid {
    display: grid;
    gap: 1.5rem;
}

.step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.step-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto 1rem;
    color: #3b82f6;
}

.step-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-text {
    color: #64748b;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ========================================
   CUSTOM SOLUTIONS
   ======================================== */
.solutions-grid {
    display: grid;
    gap: 1.5rem;
}

.solution-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.solution-icon {
    width: 56px;
    height: 56px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #3b82f6;
}

.solution-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.solution-text {
    color: #64748b;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .solutions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   GALLERY
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.gallery-zoom-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.75);
    transition: all 0.3s ease;
    color: #3b82f6;
}

.gallery-item:hover .gallery-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

.gallery-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   FEATURES (Почему выбирают нас)
   ======================================== */
.features-grid {
    display: grid;
    gap: 1.5rem;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #3b82f6;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-text {
    color: #64748b;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   CONTACTS
   ======================================== */
.contacts-grid {
    display: grid;
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #3b82f6;
}

.contact-label {
    font-size: 0.875rem;
    color: #64748b;
}

.contact-value {
    font-weight: 500;
}

.contact-value a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-value a:hover {
    color: #3b82f6;
}

.map-container {
    border-radius: 0.75rem;
    overflow: hidden;
    height: 300px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-caption {
    padding: 1rem;
    background: #f1f5f9;
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
}

@media (min-width: 1024px) {
    .contacts-grid {
        grid-template-columns: 1fr 1fr;
    }

    .map-container {
        height: 400px;
    }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #0f172a;
    color: white;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    color: #3b82f6;
}

.footer-logo-text {
    font-weight: 700;
    font-size: 1.125rem;
    color: #3b82f6;
}

.footer-description {
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-links span {
    color: #94a3b8;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #3b82f6;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   FORM STYLES
   ======================================== */
.form-group {
    margin-bottom: 1rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    margin-top: 2px;
}

.form-checkbox label {
    font-size: 0.875rem;
    color: #64748b;
}

.file-upload {
    border: 2px dashed #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: block;
}

.file-upload:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.file-upload-icon {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.file-upload-text {
    color: #64748b;
    font-size: 0.875rem;
}

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.file-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    display: flex;
}

.file-item-remove:hover {
    color: #ef4444;
}

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 0.75rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease-out;
    position: relative;
}

.modal-header {
    padding: 1.5rem 1.5rem 0;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #64748b;
    border-radius: 0.375rem;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #f1f5f9;
}

.modal-body {
    padding: 1.5rem;
}

.modal-description {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 1rem;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    max-width: 1200px;
    width: 100%;
    position: relative;
}

.lightbox-image {
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
    left: 0.5rem;
}

.lightbox-next {
    right: 0.5rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    backdrop-filter: blur(4px);
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.lightbox-thumbnails {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    overflow-x: auto;
    padding: 0.5rem;
}

.lightbox-thumb {
    width: 56px;
    height: 56px;
    border-radius: 0.375rem;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: #3b82f6;
    transform: scale(1.1);
}

.lightbox-thumb:hover {
    opacity: 1;
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-primary { color: #3b82f6; }
.text-muted { color: #64748b; }
.text-white { color: white; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }

.hidden { display: none; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

.w-full { width: 100%; }

/* ========================================
   О НАС
   ======================================== */
.about-grid {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    color: #3b82f6;
    flex-shrink: 0;
}

.about-feature span {
    font-weight: 500;
    color: #0f172a;
}

@media (max-width: 640px) {
    .about-features {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   КОНТАКТЫ - ОБНОВЛЕННЫЕ СТИЛИ
   ======================================== */
.contact-info-card,
.contact-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 2rem;
}

.contact-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.map-section {
    margin-top: 3rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
}

.map-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 500;
    color: #0f172a;
}

.map-header-icon {
    color: #3b82f6;
}

/* ========================================
   КНОПКА "НАВЕРХ"
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    z-index: 9999;
}

.scroll-top:hover {
    background: #2563eb;
    transform: translateY(-3px);
}
/* === FORCE REMOVE TILDA ORANGE === */

/* Меню */
.t-menu a,
.t-menu__link,
.t-menu__link-item,
.t-menu__link-text {
    color: #2563eb !important;
}

/* Hover */
.t-menu a:hover,
.t-menu__link:hover {
    color: #1d4ed8 !important;
}

/* Кнопки */
.t-btn,
.t-button,
.t-btn_sm,
.t-btn_md,
.t-btn_lg {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

/* Outline-кнопки */
.t-btn_border,
.t-btn_outline {
    background: transparent !important;
    color: #2563eb !important;
    border-color: #2563eb !important;
}

/* Телефон */
.t-phone,
.t-phone a {
    color: #2563eb !important;
}

/* Ссылки в тексте */
.t-text a {
    color: #2563eb !important;
}

/* Убираем tap-highlight */
* {
    -webkit-tap-highlight-color: transparent !important;
}
/* Меню: ссылки */
.header .nav .nav-link,
.header .mobile-nav a {
  color: #64748b !important; /* серый как задумано */
}

.header .nav .nav-link:hover,
.header .mobile-nav a:hover {
  color: #3b82f6 !important; /* синий на hover */
}

/* Телефон в хедере */
.header .header-phone,
.header .header-phone span {
  color: #0f172a !important;
}
.header .header-phone svg {
  color: #3b82f6 !important;
}

/* Кнопка "Смотреть продукцию" (outline) — чтобы точно НЕ стала оранжевой */
.hero .btn-outline,
.hero .btn-outline:visited {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}
.hero .btn-outline:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}
/* =========================
   TILDA GALLERY — MOBILE ONLY
   КВАДРАТ + БЕЗ ЗУМА
   ========================= */

@media (max-width: 768px) {

  /* Квадрат карточки */
  .t-gallery__item,
  .t-gallery__imgwrapper {
    aspect-ratio: 1 / 1 !important;
    background-color: #ffffff !important;
  }
  .t-gallery__imgwrapper img,
  .t-gallery__img {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
    padding: 10px !important;   /* ← регулирует "отдаление" */
    box-sizing: border-box;
    transform: none !important;
  }

  .t-gallery__imgwrapper:hover img {
    transform: none !important;
  }

  /* Если галерея использует background-image */
  .t-gallery__imgwrapper {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
  }
}



/* ========================================
   FIXES (Mobile gallery + remove Tilda orange + map/address helpers)
   Added by ChatGPT
   ======================================== */

/* --- Kill Tilda orange accents (strong override) --- */
a, a:visited {
    color: inherit !important;
}

/* Common Tilda menu blocks (t228/t450/t282/t396 etc.) */
.t-menu a,
.t-menu__link,
.t-menu__link-item,
.t-menu__link-text,
.t228 a, .t450 a, .t282 a, .t396 a {
    color: #64748b !important;
}

.t-menu a:hover,
.t-menu__link:hover,
.t228 a:hover, .t450 a:hover, .t282 a:hover, .t396 a:hover {
    color: #3b82f6 !important;
}

/* Common Tilda buttons */
.t-btn, .t-btn_sm, .t-btn_md, .t-btn_lg, .t-button {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}
.t-btn:hover, .t-button:hover {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
}

/* --- Mobile only: keep square but "zoom out" images (no crop) --- */
@media (max-width: 768px) {

    /* Your custom gallery (mobile): keep square, show image fully, no blanks on iOS */
    .gallery-item {
        background-color: #ffffff;
        padding: 12px;              /* "zoom out" */
        box-sizing: border-box;
    }

    .gallery-item img {
        position: absolute;
        inset: 12px;                /* respects padding visually */
        width: calc(100% - 24px);
        height: calc(100% - 24px);
        object-fit: contain !important;
        padding: 0 !important;
        transform: none !important;
        transition: none !important;
    }

    .gallery-item:hover img,
    .gallery-item:active img,
    .gallery-item:focus img {
        transform: none !important;
    }



    /* Disable hover overlay/zoom icon on touch devices */
    .gallery-item-overlay { background: rgba(0,0,0,0) !important; }
    .gallery-zoom-icon { opacity: 0 !important; transform: none !important; }

    /* Tilda gallery (most common selectors) */
    .t-gallery__item,
    .t-gallery__imgwrapper {
        background-color: #ffffff !important;
    }

    .t-gallery__imgwrapper img,
    .t-gallery__img {
        object-fit: contain !important;
        width: 100% !important;
        height: 100% !important;
        padding: 12px !important;
        box-sizing: border-box;
        transform: none !important;
    }

    /* If Tilda uses background-image on wrapper */
    .t-gallery__imgwrapper {
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }
}